Jump to content

random data selected by database


stkhanpk

Recommended Posts

hi. i am making mcq type test. lot of questions stored in db, i want that some of them retrieve i.e. 5  after 5 test should end. how is hould do,

query is ...SELECT question,questionid, choice1, choice2, choice3, choice4, answer FROM questionbank  order by RAND() limit 1";...

limit 1 is used for display one question in a page.

 

Link to comment
https://forums.phpfreaks.com/topic/228585-random-data-selected-by-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.