Online Exam in php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Limno
    New Member
    • Apr 2008
    • 92

    Online Exam in php

    Hi,

    Can anyone suggest me how to do online exam in php, Here my doubt is, i displayed 1st question with 4 options. But if user click next button, i need to display 2nd question, then 3rd.... goes on. and the user is not allowed to move to the previous question.

    with this query, i m displaying 1st question and its options

    Code:
    SELECT * FROM question where cat_id='".$_GET['cat']."' ORDER BY question_id Limit 1
    How can i do this..

    Thanks in Advance.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you could save the current question number in a session var and only this question is allowed to be processed.

    Comment

    • Limno
      New Member
      • Apr 2008
      • 92

      #3
      How can i know that current question number.

      I m inserting question with different category, user test is based on category.

      it will be random quesion numbers in database.

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        use the primary key from the database (question_id).

        Comment

        Working...