Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2003
    Location
    London, UK
    Posts
    1

    Question Unanswered: HELP PLEASE - Random Match query

    I'm trying to build an online quiz site in PHP where the questions are selected randomly from mysql database. How do I select questions randomly and also match the answer selected to the one in my database.
    I have a table of questions and 4 possible answers and also a table of actual answers.

  2. #2
    Join Date
    Jan 2003
    Location
    Paris, France
    Posts
    320
    Try to use ORDER BY RAND()
    Olivier Miossec
    --
    http://www.lasso-developpeur.net/
    --

Posting Permissions

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