Hello I have store in a database some question with four answers for each question. I want retrieve randomly 20 questions from the database. Also I have to mix the answers as I echo them out… Do you have any idea how can I do this?
Thank you
Use ORDER BY RAND() to get random results. To get 20 add LIMIT 0, 20 to the query. You can use the same way to mix the answers.
Thank you very mach