diff --git a/anser.php b/anser.php index 6383af8..87f2ddf 100644 --- a/anser.php +++ b/anser.php @@ -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 "
正确答案是: ".$result[$list[$result['answer']]]."
你的答案是: ".$result[$list[$a]]."
" //echo "\n\n\n\n\n\n\n\n
\n"; }; - } + }; // echo "