I want to be able to load random questions into a Flash 5 movie like this http://www.webtoonist.com/triviaquiz/triviaquiz.swf using PHP/MySQL, can anyone tell me how I might do this, please? Thanks!
$q = mysql_query("SELECT id FROM trivia",$conn_id); $counter =0; while($foo = mysql_fetch_row($q)) { $idArray[$counter] = $foo[0]; $counter++; }
$currentQid = $idArray[rand(0,count($idArray))];