tt
This commit is contained in:
6
test.php
6
test.php
@@ -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'];
|
||||
echo $_POST[$a];
|
||||
echo $rowquestion;
|
||||
if((int)$_POST[$a] == $rowquestion ) {
|
||||
if((int)$_POST[$a] != 0){
|
||||
$scort++;
|
||||
@@ -62,8 +62,8 @@
|
||||
mysqli_query($con,$sql5);
|
||||
}
|
||||
};
|
||||
// $sql5 = "UPDATE UserAnswer SET score=$scort WHERE Student_ID=$_POST[student_id]";
|
||||
// mysqli_query($con,$sql5);
|
||||
$sql5 = "UPDATE UserAnswer SET score=$scort WHERE Student_ID=$_POST[student_id]";
|
||||
mysqli_query($con,$sql5);
|
||||
echo "提交成功。谢谢参与我们的活动,请继续关注我们公众号bupt_stu的后续推送。现在你可以直接关闭页面了。";
|
||||
//match & score
|
||||
//$result = mysqli_query("SELECT * FROM UserAnswer WHERE Student_ID=$_POST[student_id]");
|
||||
|
||||
Reference in New Issue
Block a user