ttttt
This commit is contained in:
@@ -82,8 +82,8 @@
|
||||
3=> 'C',
|
||||
4=> 'D',
|
||||
);
|
||||
$row = mysqli_fetch_array($result2)
|
||||
for($i = 1;$i <= 20;$i++){
|
||||
$row = mysqli_fetch_array($result2);
|
||||
for($i = 1;$i <= $p;$i++){
|
||||
$q = floor($row['ap_'.$i] / 10);
|
||||
$a = floor($row['ap_'.$i] % 10);
|
||||
$result = mysqli_query($con,"SELECT * FROM Persons WHERE num='$q'");
|
||||
@@ -91,7 +91,7 @@
|
||||
echo "<p><p>正确答案是: ".$result[$list[$result['answer']]]." </p><p>你的答案是: ".$result[$list[$a]]."</p></p>"
|
||||
//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