I've created a test system using Wordpress, jQuery and PHP which is working great. The area that I don't have much experience in is mysql databases.
I'm not really sure how to save the results in a neat and tidy way.
The things I want to save are the following:
- Users name.
- Test name.
- Questions.
- Answers.
- Score.
- Pass/fail.
Points 1, 2, 5 & 6 are fairly straight forward to save the data. The confusion comes with the questions and answers.
How can I save these in a neat way to the mysql database?
Say there are 10 questions, each with multiple choice answers, how can I save each of those in the database but have it linked to the user that filled them in? I'm not sure how to keep the database neat and this could quickly spiral out of control.
In the future I may want to do some searching on the those questions and answers.