title: how to concatenate sql queries
body: <p>i am trying to concatenate sql queries and run later after loop. how is that possible? this is my vision: </p>
  
  <pre><code>for($i=1;$i&lt;=10;$i++){
     $item_.$i = "value_".$i;
     sql = sql . " insert into table (`item`) values ('$item_'.$i.'')";
     // this should be but an array
  }
  </code></pre>
  
  <p>and save into db: </p>
  
  <pre><code>for($j=0;$j&lt;sqlarray.length;$j++){
     $sql_done = mysql_query($sqlarray[$j]);
  }
  </code></pre>
  
  <p>i didnot try anything yet, because the database is big and i am afraid of destroying something important with my code.. </p>
  
  <p>thanks a lot</p>