title: Insert php array into mysql table
body: <p>Update:
  I forgot to mention that echo <code>$matstring</code> outputs <code>'65.70', 'Coles','34 days','14'</code> - which would appear to be the right syntax? </p>
  
  <p>I'm a php/mysql newbie, and I think this is fairly basic, but having read all of the other stackoverflow questions on this topic and fiddling with different versions of my code for several hours I can't understand what I'm doing wrong. Would very much appreciate any help/suggestions.</p>
  
  <p>Aim: pass data from my php array (<code>$matrix</code>) into a mysql table</p>
  
  <pre><code>$matrix[1]=
  ( [0] =&gt; 65.70 [1] =&gt; Coles [2] =&gt; 34 days [3] =&gt; 14 )
  
  $matrix[2]=
  ( [0] =&gt; 62.70 [1] =&gt; Coles [2] =&gt; 13 days [3] =&gt; 14 )
  
  $matrix[3]=
  ( [0] =&gt; 12.70 [1] =&gt; Safeway [2] =&gt; 43 days [3] =&gt; 14 )
  </code></pre>
  
  <p>Code:<BR></p>
  
  <pre><code>$matstring=implode("','",$matrix[1]);
  $matstring="'".$matstring."'";
  mysql_query('INSERT INTO Australia (Price, Company, Days, Weight) VALUES ('$matstring')');
  </code></pre>