SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot jvr's Avatar
    Join Date
    Dec 2007
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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...

  2. #2
    We're from teh basements.
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •