From 9958de4a1f96269c9bc8ee7e6b3d2b9946ecca58 Mon Sep 17 00:00:00 2001 From: xice09 Date: Thu, 31 May 2018 00:55:30 +0800 Subject: [PATCH] tt --- test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.php b/test.php index 2bebef3..9fbdf00 100644 --- a/test.php +++ b/test.php @@ -48,7 +48,7 @@ $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]; - $rowquestion = mysqli_fetch_array(mysqli_query($sql7))['answer']; + $rowquestion = mysqli_fetch_array(mysqli_query($con,$sql7))['answer']; echo $rowquestion; if((int)$_POST[$a] == $rowquestion ) { if((int)$_POST[$a] != 0){