no repeat selection!
Hi I've got this code for selecting a number of questions from a db to make a test. It's random and sometimes it selects the same questions and they appear twice in the tests... how can I stop this from happening?
$sql = "SELECT * FROM questions ORDER BY RAND() LIMIT 20";
thanks in advance!
|