title: PHP POST multiple rows into MySQL
body: <p>I have a table named fruits:</p>
  
  <pre>id      fruit
  1       Apple
  1       Banana
  2       Apple
  2       Apple
  2       Pear</pre>
  
  <p>I would like to be able to add several rows at once using PHP.</p>
  
  <p>I tried having two sets of two textboxes (for id and fruit) but that only insert 1 row, using the last set of textboxes.</p>
  
  <p>EDIT:</p>
  
  <p>Then what do I do if I have a table like this:</p>
  
  <pre>id      fruit       taste
  1       Apple       Good
  1       Banana      Okay
  2       Apple       Good
  2       Apple       Bad
  2       Pear        Good</pre>