Results 1 to 2 of 2
  1. #1
    Join Date
    May 2012

    Questionnairre Database Design

    I am busy developing an exam-type system where the admin adds questions and answers to those questions into the MySQL database, but really can't think of a way to mark the correct question in the database. I obviously don't want to show the correct question to the student, thus I am trying to think of a way for PHP of which is the correct question to add up the total marks and calculate the percentage. Any help or ideas would be much appreciated. Thank you very much!

  2. #2
    Join Date
    Oct 2009
    221B Baker St.
    Consider creating a separate table that contains the "right" answer for each question on the test.

    When scoring, join this table to the test scores and detemine which anawers are correct and which are not and the percentages.

Tags for this Thread

Posting Permissions

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