PHP - Online Quiz Game
Tuesday, February 27th, 2007This is a ready to go example. Basically, it enables you to create online quizzes and validate them, displaying number of guessed answers. Since it is written in object oriented manner, it is easy to extend its capabilities.
Example uses three DB tables and seven classes.
DB tables are:
quiz_quizzes
quiz_questions
quiz_answers
Relationship between quiz, question and answer is: quiz have one or more questions, and each question have one or more answers. Only one answer is correct. So, each quiz have unique QuizID. Each question have unique QuestionID and it is connected with quiz through its QuizID. Each answer have unique AnswerID and it is connected with question through its QuestionID.
Powerset is a Silicon Valley company building a transformative consumer search engine based on natural language processing.