title: insert php array into mysql
body: <p>I have an array $product_array, and when I use print_r($product_array);. The array shows like this</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [ID] =&gt; P00100
              [NAME] =&gt; Edina
              [PRICE] =&gt; $20.00
          )
  
      [1] =&gt; Array
          (
              [ID] =&gt; P00101
              [NAME] =&gt; Richfield
              [PRICE] =&gt; $21.00
          )
  
      [2] =&gt; Array
          (
              [ID] =&gt; P00102
              [NAME] =&gt; Bloomington
              [PRICE] =&gt; $22.00
          )
  )
  </code></pre>
  
  <p>I set my database table in 4 columes, first one is mainid, and which is auto increment, following with ID, NAME, PRICE, as the keys showed above. 
  I would like to insert this array $product_array into mysql.
  Can anyone help? Would be very much appreciated!
  tks.</p>