SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: How to make a randomize quiz???
-
Feb 20, 2008, 12:35 #1
How to make a randomize quiz???
Hello PHP masters,
Is there anyone knows how to make a randomize quiz using PHP/Mysql. Can you give me an idea on how to start this. Some logic or better if you have some script regrading this.
Thanks in advance...
-
Feb 20, 2008, 12:54 #2
- Join Date
- Apr 2007
- Posts
- 1,205
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It would be pretty easy with delimited files. Put one question/answer per line in a text file. Pull it into an array using the file() function. Generate a random number between 0 and the number of lines minus one to select an array element.
Bookmarks