title: What code should I write to display questions and multiple choice answers sequentially?
body: <p>I have created a question bank table in a MySQL database. I want to display these questions and their multiple choice answers to the browser.  The following question must be displayed after the user selects an answer for the current question.  I want to store the user entered value in a POST variable like <code>$_POST['store']</code>.  It must catch the values the user enters each time and increment.  At the end the result must be displayed, where for each correct answer one mark must be allotted.</p>
  
  <p>The database table fields are <code>Sno</code>, <code>Question</code>, <code>option 1</code>, <code>option 2</code>, <code>option3</code>
  and, in another table, <code>Q_no</code>, <code>userentered</code>, <code>corect answer</code>.</p>
  
  <p>What PHP code and MySQL query do I write? How can I create another dynamic table so that I can compare the user entered answer to the correct answer?</p>