View Poll Results: What would you like to see a Linux quiz on?
- Voters
- 5. You may not vote on this poll
-
PHP
-
MySQL
-
Databases in general
-
other
Originally Posted by elija
Are you open to suggestions?
If so, I would have each test have a set number of questions and pull random questions out of the database.
...
-

Originally Posted by
elija
Are you open to suggestions?
If so, I would have each test have a set number of questions and pull random questions out of the database.
You can get a random order in MySQL simply by ordering by rand() and if you want to pull the appropriate question out for each request than you can seed the random function with a number - for example a session ID. This will always return the same order for the same number.
If you are not open to suggestions, then please ignore this

Not sure what you mean. I use MySQL to create the quiz, but what you see is MySQLless. I use PHP to modify the behavior of question selection (for a variation see Advanced - Oh! What!).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules