title: how to insert multiple row data into multiple row in php mysql
body: <p>I have retrieved data from the table and all the retrieved data to be stored in another table in each row. I have tried the below code but it is inserting only "</p>
  
  <pre><code>$roll_no = $_POST['roll_no'];
  $name = $_POST['name'];
  $class = $_POST['class'];
  $section =  $_POST['section'];
  $m_am = $_POST['m_am'];
  $a_pm = $_POST['a_pm'];
  $date = $_POST['date'];
  echo $a_pm .'&lt;br&gt;'.$m_am.'&lt;br&gt;'.$roll_no;
  
  /*$sql_2 = mysql_query("INSERT INTO stud_class_attendance (`sca_rollno`, `sca_name`, `sca_class`, `sca_section`,`sca_am`, `sca_pm`,                     
  ?&gt;"
  </code></pre>