<?php
$query=("SELECT exam_ID, question, choice1, choice2, choice3,answer FROM exams ORDER BY RAND() LIMIT 5 " );
$result = @mysqli_query ($con, $query); // Run the query.
while($row =mysqli_fetch_array($result,MYSQLI_BOTH)):
?>
这是代码是为了帮助从我的考试数据库中获取问题,但任何时候我都会收到此错误
警告:mysqli_fetch_array()要求参数1为mysqli_result,在第29行的C:\ xampp \ htdocs \ Login \ question.php中给出null