This commit is contained in:
xice09
2018-05-31 00:49:57 +08:00
parent 4a09600043
commit d124ef69b5

View File

@@ -47,9 +47,9 @@
$c= "aq_".$i;
$d=$_POST[$a]+$_POST[$b]*10;
$sql5 = "UPDATE UserAnswer SET $c=$d WHERE Student_ID=$_POST[student_id]";
$sql7 = "SELECT * FROM Persons WHERE num=$_POST[$b]";
$sql7 = "SELECT * FROM Persons WHERE num=".$_POST[$b];
$rowquestion = mysqli_fetch_array(mysqli_query($sql7))['answer'];
echo $rowquestion.' '.(int)$_POST[$a];
echo $_POST[$a];
if((int)$_POST[$a] == $rowquestion ) {
if((int)$_POST[$a] != 0){
$scort++;