diff --git a/testdb.php b/testdb.php
new file mode 100644
index 0000000..79a211b
--- /dev/null
+++ b/testdb.php
@@ -0,0 +1,62 @@
+\n
单选题
\n";
+ //创建随机数组
+ $randomArray = array_rand(range(1,99),$p+1);
+ // for($i = 1;$i <= $p;$i++){
+ // echo $randomArray[$i]." ";
+ // }
+ shuffle($randomArray);
+ $count = 0;
+ for($i = 1;$i <= $p;$i++){
+ $flag = 0;
+ $random = $randomArray[$i];
+ $result = mysqli_query($con,"SELECT * FROM Persons WHERE num='$random'");
+ while($row = mysqli_fetch_array($result)){
+ $count += 1;
+ echo "当前查询次数:$count, 查询行数: $random, 查询题号: $i";
+ //html
+ $flag = 1;
+ echo "
\n";
+ echo "
\n";
+ }
+ echo $flag;
+ if($flag == 0){
+ $i--;
+ echo $i;
+ sleep(0.4);
+ }
+ }
+
+ // echo "
二、判断题
";
+ // $randomArray = range(1,10);
+ // shuffle($randomArray);
+ // for($i = 1;$i <= $pp;$i++){
+ // $random = $randomArray[$i] + 60;
+ // $result = mysqli_query($con,"SELECT q FROM Persons WHERE num='$random'");
+ // while($row = mysqli_fetch_array($result)){
+ // $j = $i + $p;
+ // //echo "
".$row."
";
+ // echo "
". $j. ".". $row['q'] ."
\n
\n\n\n\n
\n";
+ // echo "
\n";
+ // }
+ // }
+
+ echo "
";
+ //close linking
+ mysqli_close($con);
+ ?>
\ No newline at end of file