You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Mark Wane 57d973d453 Add sample database dump 2 years ago
classes Email result link to user 2 years ago
.gitignore Initial commit 2 years ago
README.md Minor improvements to results page 2 years ago
ajax.php Email result link to user 2 years ago
config.dist.php Initial commit 2 years ago
index.php Calculate and save score, then generate results page 2 years ago
init.php Create remaining item classes 2 years ago
quiz.js Calculate and save score, then generate results page 2 years ago
quiz.php Page to next question, increment progress bar 2 years ago
result.php Minor improvements to results page 2 years ago
sample_db.sql Add sample database dump 2 years ago

README.md

Basic PHP Quiz system

A simple system for multiple choice quizes.

N.B. While the system will allow a user to take each quiz multiple time and save the total for each attempt, individual question scores are only saved for the latest attempt.

Installation

Import the included dump file, copy config.dist.php to config.php and update the connection details

Answers to example quizzes

Quiz A

  1. B
  2. A
  3. False
  4. A and C

Quiz B

  1. True
  2. D
  3. C and D
  4. True
  5. False
  6. B