Question: Confused about quiz/results page for PHP assignment: So apparently, I'm supposed to use PHP to save the quiz results to a new text file from

Confused about quiz/results page for PHP assignment:

So apparently, I'm supposed to use PHP to save the quiz results to a new text file from the results page that I already have. New quiz scores should be appended to the text file, so that old scores are preserved. I need to save the username, their answers to each question, their overall score, and a timestamp of when the quiz was taken. I then need to use PHP to read the saved quiz results from the text file, and display them on a summary or history page. Results should be neatly ordered on the page (use CSS or other, structural HTML).

Lastly, on the summary or history page, I need to provide statistics on which questions were the ones that were answered incorrectly the most, and the ones that were answered correctly the most.

I do not need to do any form validation for this assignment. If a question is left blank, I need to count it as wrong. For the name field, use HTML required attribute to ensure the user inputs something.

I'm just confused on how to do all of this for my 5-question quiz that I already created that needs to serve the new purpose of recording the results of all quiz takers.

All of my current code is listed in my previous questions asked for reference.

Here are a few examples I was given:

readingfile.php

Form Test

writingtofile.php

Form Test

Name:

Thank you for your help, in advance!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!