query:
"SELECT * FROM some_table"
returns:
10 rows
information I need spans 5 columns:
1. question
2. correct answer
3, 4, 5. wrong answers
How can I pull this info into an array such as the one that follows:
Code: Select all
$questAnswers = array($incrementingnum => array(0 => $question, 1 => $correctans, 2 => $wrongans1, 3 => $wrongans2, 2 => $wrongans3);Then I need to be able to shuffle each one, would i just do this using:
Code: Select all
shuffle($questAnswers[0]);Thanks in advance,
Saethyr