title: php multiple choice quiz creator
body: <p>Here is the scenario,</p>
  
  <p>At our online education firm we are creating an online quiz.
  The administrator feeds in </p>
  
  <ul>
  <li>the question</li>
  <li>1 correct answer</li>
  <li>4 incorrect answers</li>
  </ul>
  
  <p>into the mysql database using a PHP form.</p>
  
  <p>Here is what the table looks like</p>
  
  <p><img src="https://i.stack.imgur.com/MDnKs.png" alt="enter image description here"></p>
  
  <p>Now I would like to do two things:</p>
  
  <ol>
  <li><p>Make a PHP page which retrieves let's say 10 random question/answers from the table and displays it on the PHP page with radio buttons and all for a user to check the right answer.</p>
  
  <p>Can the following method be used to display retrieved info?</p>
  
  <p><code>
  echo "&lt;td&gt;" . $row['question'] . "&lt;/td&gt;";<br>
  echo "&lt;td&gt;" . $row['c_answer'] . "&lt;/td&gt;";<br>
  echo "&lt;td&gt;" . $row['w_answer1'] . "&lt;/td&gt;";<br>
  echo "&lt;td&gt;" . $row['w_answer2'] . "&lt;/td&gt;";<br>
  echo "&lt;td&gt;" . $row['w_answer3'] . "&lt;/td&gt;";<br>
  echo "&lt;td&gt;" . $row['w_answer4'] . "&lt;/td&gt;";
  </code> </p></li>
  <li><p>Make a second PHP page which checks user submitted answer with the right results stored in the DB, script that checks and creates a scorecard.</p></li>
  </ol>
  
  <p>How can I go about doing the 2 tasks?</p>
  
  <p>All inputs appreciated.</p>