PHP代码:
$result = executeQuery("select * from question where testid=" . $_SESSION['testid'] . " order by qid;");
上面的代码为每个用户选择相同的问题序列我希望每次用户开始测试时都要更改问题序列
答案 0 :(得分:0)
你可以按顺序使用随机函数。
ORDER BY RAND()
$result = executeQuery("select * from question where testid=" . $_SESSION['testid'] . " order by RAND();");