ttttt
This commit is contained in:
@@ -74,9 +74,9 @@
|
||||
shuffle($randomArray);
|
||||
$chongfu="SELECT Student_ID FROM UserAnswer WHERE Student_ID=$_SESSION[Student_ID]";
|
||||
$result2 = mysqli_query($con,"SELECT * FROM UserAnswer WHERE Student_ID = '$_SESSION[Student_ID]'");
|
||||
if(!mysqli_fetch_array(mysqli_query($con,$chongfu))[0]==$_SESSION[student_id]){
|
||||
if(mysqli_fetch_array(mysqli_query($con,$chongfu))[0]==$_SESSION[student_id]){
|
||||
echo '请先完成问卷';
|
||||
}else{
|
||||
}
|
||||
$list = array(
|
||||
1=> 'A',
|
||||
2=> 'B',
|
||||
@@ -92,7 +92,7 @@
|
||||
echo "<p><p>正确答案是: ".$result[$list[$result['answer']]]." </p><p>你的答案是: ".$result[$list[$a]]."</p></p></div>\n";
|
||||
//echo "<p><input class=\"with-gap\" type=\"radio\" name=\"answer_". $i. "\" value=\"1\" id=\"test". $i. "1\" onclick=\"addOne(this)\"/>\n<label for=\"test". $i. "1\">". $row['A'] ."</label>\n<input class=\"with-gap\" type=\"radio\" name=\"answer_". $i. "\" value=\"2\" id=\"test". $i. "2\" onclick=\"addOne(this)\"/>\n<label for=\"test". $i. "2\">". $row['B'] ."</label>\n<input class=\"with-gap\" type=\"radio\" name=\"answer_". $i. "\" value=\"3\" id=\"test". $i. "3\" onclick=\"addOne(this)\"/>\n<label for=\"test". $i. "3\">". $row['C'] ."</label>\n<input class=\"with-gap\" type=\"radio\" name=\"answer_". $i. "\" value=\"4\" id=\"test". $i. "4\" onclick=\"addOne(this)\"/>\n<label for=\"test". $i. "4\">". $row['D'] ."</label>\n</p></div>\n";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
// echo "<!-- </div><div class=\"section\"> --><h5> 二、判断题</h5>";
|
||||
|
||||
Reference in New Issue
Block a user