From aed137a113e6653ad1eb81b2495a86c7f96c95d0 Mon Sep 17 00:00:00 2001
From: xice09
Date: Wed, 30 May 2018 17:37:55 +0800
Subject: [PATCH] ttttt
---
anser.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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 " 二、判断题
";