title: Saving test results to a database: keeping the database neat
body: <p>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.</p>
  
  <p>I'm not really sure how to save the results in a neat and tidy way.</p>
  
  <p>The things I want to save are the following:</p>
  
  <ol>
  <li>Users name.</li>
  <li>Test name.</li>
  <li>Questions.</li>
  <li>Answers.</li>
  <li>Score.</li>
  <li>Pass/fail.</li>
  </ol>
  
  <p>Points 1, 2, 5 &amp; 6 are fairly straight forward to save the data. The confusion comes with the questions and answers.</p>
  
  <p><strong>How can I save these in a neat way to the mysql database?</strong></p>
  
  <p>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.</p>
  
  <p>In the future I may want to do some searching on the those questions and answers.</p>