Re: [PHP] Random questions from database

2004-01-27 Thread memoimyself
Hello Alex, On 27 Jan 2004 at 9:25, Alex Hogan wrote: > while($row = mssql_fetch_array($result)) > > { > > $id[] = $row['id']; > > $ques[] = $row['question']; > > } To keep question and id together even after shuffling the array, why don't you build an array of arrays like this

[PHP] Random questions from database

2004-01-27 Thread Alex Hogan
Hi All, I want to have a series of questions that are randomized for a particular lesson. This part is easy. I have taken the results from the db and put it in an array and then used shuffle() to randomize the questions. while($row = mssql_fetch_array($result)) { $id[] =