title: Store a big array in mySQL
body: <p>what is the best way to store a big array into a mySQL DB?</p>
  
  <p><strong>First solution</strong></p>
  
  <pre><code>INSERT INTO `friendList` ( `userId` , `friendId` , `friendName` ) VALUES 
      ( '1', '3242343', 'bernd' ), 
      ( '1', '3242342', 'jusu' );
  </code></pre>
  
  <p>or with foreach</p>
  
  <p><strong>second solution</strong></p>
  
  <pre><code>foreach (xxxx) {
       mysql_query("insert xxxx");
  }
  </code></pre>
  
  <p>The first solution is better (cleaner and not so burdensome for the server, right?), but how do a create this insert command?</p>