tt
This commit is contained in:
4
test.php
4
test.php
@@ -49,9 +49,11 @@
|
|||||||
$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($sql7))['answer'];
|
$rowquestion = mysqli_fetch_array(mysqli_query($sql7))['answer'];
|
||||||
if($_POST[$a] == $rowquestion && $_POST[$a] >= 1) {
|
if($_POST[$a] - $rowquestion == 0) {
|
||||||
|
if($_POST[$a] == '1'||$_POST[$a] == '2'||$_POST[$a]=='3'||$_POST[$a]=='4'){
|
||||||
$scort++;
|
$scort++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!mysqli_query($con,$sql5))
|
if (!mysqli_query($con,$sql5))
|
||||||
{
|
{
|
||||||
$sql6="ALTER TABLE UserAnswer ADD $c INT(11) NOT NULL";
|
$sql6="ALTER TABLE UserAnswer ADD $c INT(11) NOT NULL";
|
||||||
|
|||||||
Reference in New Issue
Block a user