I need to implement a question answer form using php , I need to select the question along with the option values.in a way that the option values should be random.
such as
Select quest,option1,option2,option3 from Questtable ;
how can get the option1,option2,option3 in a random order for each request, any way can we implement using mysql. ?
Using a MySQL query to do this ain’t possible, but you can make php randomize the output.
Write the options to an empty array, then randomize the array.
If you like to do it with MySQL you have to make 2 tables, one containing the questions and once containing the answers, 1 answer per row.
Then you can do: