title: This loop only allows me to choose one option for various questions although they all have their varying options
body: <p>php code to loop through to fetch questions and answers from database. This is mainly where my problem is. I see all the questions and their options but I can only answer for  one question </p>
  
  <pre><code>&lt;?php  while ($data = mysql_fetch_assoc($result) ) {
              $qID = $data['QID'];
              $question = $data['Question'];
              $A = $data['qA'];
              $B = $data['qB'];
              $C = $data['qC'];
      ?&gt;  
  
      &lt;tbody&gt;
          &lt;tr&gt;
           &lt;td&gt; &lt;?php echo $qID?&gt; &lt;/td&gt;
          &lt;td&gt; &lt;?php echo $question ?&gt; &lt;/td&gt;
  </code></pre>
  
  <p>Loop to bring out available options per question</p>
  
  <pre><code>        &lt;td&gt;
                  &lt;div&gt;
                          &lt;input type="radio" name="question-1-answers" id="question-1-answers-A" value="A" /&gt;
                          &lt;label for="question-1-answers-A"&gt;A)&amp;nbsp;     
                              &lt;?php
                                  echo $data["qA"];
                              ?&gt;      
                          &lt;/label&gt;
                    &lt;/div&gt;
  
                    &lt;div&gt;
                          &lt;input type="radio" name="question-1-answers" id="question-1-answers-B" value="B" /&gt;
                          &lt;label for="question-1-answers-B3"&gt;B)&amp;nbsp;
                              &lt;?php
                                  echo $data["qB"];
                              ?&gt;  
                          &lt;/label&gt;
                    &lt;/div&gt;
  
                    &lt;div&gt;
                          &lt;input type="radio" name="question-1-answers" id="question-1-answers-C" value="C" /&gt;
                          &lt;label for="question-1-answers-C3"&gt;C)&amp;nbsp;
                              &lt;?php
                                  echo $data["qC"];
                              ?&gt;  
                          &lt;/label&gt;
                      &lt;/div&gt;
  
  
          &lt;/td&gt;
  
        &lt;/tr&gt;
  
      &lt;/tbody&gt;
  </code></pre>
  
  <p>End of the loop
           </p>