This commit is contained in:
xice09
2018-05-31 00:37:00 +08:00
parent 3f4369037a
commit e8291e1a20
2 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@
$sql5 = "UPDATE UserAnswer SET $c=$d WHERE Student_ID=$_POST[student_id]";
$sql7 = "SELECT * FROM Persons WHERE num=$_POST[$b]";
$rowquestion = mysqli_fetch_array(mysqli_query($sql7))['answer'];
if($_POST[$a] == $rowquestion){
if($_POST[$a] == $rowquestion && $_POST[$a] >= 1) {
$scort++;
}
if (!mysqli_query($con,$sql5))