Hello,
I am scripting up a random quiz that my users on my site wanted for some odd reason. i needed to randomize the order of the questions.
basically i got code like
$q[#] = 'htmlcode';
were # is a number that i increase for each question. i didn't feel like making a mysql table to hold the questions and answers.
and then i got
for ($i = 0; $i < 28; $i++)
echo '<tr><td align="left" valign="top">'. $q[$b++]. '</td></tr>';
but they come out in order. how would i randomize the order of the questions?? i know i can use the php code to do a random string but i do not want the same questions appearing twice. So thats where i am stumped on what to do.
Any Idea?
Thanks.