This commit is contained in:
2018-05-31 21:57:06 +08:00
parent 7405b8ccad
commit fd1fed436c

View File

@@ -49,7 +49,7 @@
$sql5 = "UPDATE UserAnswer SET $c=$d WHERE Student_ID=$_POST[student_id]"; $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($con,$sql7))['answer']; $rowquestion = mysqli_fetch_array(mysqli_query($con,$sql7))['answer'];
echo $rowquestion; // echo $rowquestion;
if($_POST[$a] == $rowquestion && $_POST[$a]) { if($_POST[$a] == $rowquestion && $_POST[$a]) {
$scort++; $scort++;
} }