\nwindow.location.href = \"https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MjM5NzY1MjYyMg==&scene=124#wechat_redirect\";\n"); } ?> 礼敬中华 知识答题
" type="text" class="validate" style="color:#fff" name="timestart">
本次答题限时15分钟    剩余时间  15:00
开始
\n
  单选题
\n"; //创建随机数组 $randomArray = array_rand(range(1,107),$p+1); // for($i = 1;$i <= $p;$i++){ // echo $randomArray[$i]." "; // } shuffle($randomArray); 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)){ //html $flag = 1; echo "
"; echo "
". $i. ".". $row['q'] ."
\n

"; echo "\n\n"; echo "\n\n"; echo "\n\n"; if($row['D']){ echo "\n\n"; } echo "

\n"; echo "
\n"; } if($flag == 0){ $i--; } } // 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); ?>