title: How to create multiple radio button using for loop in php?
body: <p>Question:- I want to retrieve questions from database and it should be followed by 2 radio buttons for every question. I did, but suppose when I click on YES button for 1st question I can't select YES button for 2nd question so how can I do it? </p>
  
  <pre><code>&lt;?
  $query      = "SELECT mq_question FROM mental_questions where mq_agegroup=4 ";
  $result     = mysql_query($query);
  $total_rows = mysql_num_rows($result); 
  Print "&lt;ol&gt;";
  while($row = mysql_fetch_array($result, MYSQL_ASSOC))
  {
      echo "&lt;h4&gt;&lt;font color=#336699&gt;&lt;li&gt;{$row['mq_question']} &lt;/li&gt;&lt;/font&gt;&lt;h4/&gt;&lt;br/&gt;";    
      echo "&lt;p&gt;&lt;font color=#336699&gt;Yes&lt;input type='radio' value='yes' id='yes' name='yes' /&gt;No&lt;input type='radio' value='no' id='no' name='no' /&gt;&lt;/font&gt;&lt;/p&gt;&lt;/br&gt;"; 
  }
  Print "&lt;/ol&gt;";
  ?&gt;
  </code></pre>