Go to file
Mark Wane 57d973d453 Add sample database dump 2019-10-06 17:56:02 +01:00
classes Email result link to user 2019-10-06 10:03:07 +01:00
.gitignore Initial commit 2019-10-05 08:38:38 +01:00
README.md Minor improvements to results page 2019-10-06 17:55:33 +01:00
ajax.php Email result link to user 2019-10-06 10:03:07 +01:00
config.dist.php Initial commit 2019-10-05 08:38:38 +01:00
index.php Calculate and save score, then generate results page 2019-10-06 08:53:19 +01:00
init.php Create remaining item classes 2019-10-05 16:38:28 +01:00
quiz.js Calculate and save score, then generate results page 2019-10-06 08:53:19 +01:00
quiz.php Page to next question, increment progress bar 2019-10-05 20:22:44 +01:00
result.php Minor improvements to results page 2019-10-06 17:55:33 +01:00
sample_db.sql Add sample database dump 2019-10-06 17:56:02 +01:00

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