From 266c664c06baf174f259310db6ba56615c748c42 Mon Sep 17 00:00:00 2001 From: Mark Wane Date: Sun, 6 Oct 2019 17:55:33 +0100 Subject: [PATCH] Minor improvements to results page --- README.md | 20 ++++++++++++++++++++ result.php | 11 ++++++++--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5a3b6a0..9c50e4a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,26 @@ 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 diff --git a/result.php b/result.php index 0d12d21..095a887 100644 --- a/result.php +++ b/result.php @@ -39,23 +39,28 @@ if ( $scorePer_num > $averagePer_num + 10 ){
-

Thank you, getName(); ?>

+

Thank you, getName(); ?>
getName(); ?>

-

Your score

+

Your score

-

Average score

+

Average score

+
+ +