title: Multi-dimensional array parsed from .csv ->commas causing mysql database insert issues
body: <p>I am using Codeigniter to parse an uploaded csv file (which is a multi-dimensional array) into a database.  I have tried everything to parse the comma values correctly, but the "id" column in mysql comes up short, as it reads "text", and not "text,text,text".  Help!?</p>
  
  <pre><code>    *For reference:*
  
      print_r($data['csvData']);
  
      Array ( [0] =&gt; Array ( [category,id] =&gt; text1,"text,text,text" )
              [1] =&gt; Array ( [category,id] =&gt; text2,"text,text,text" )
      )
  
      foreach($data['csvData'] as $row) {
                      foreach ($row as $item) {
                              $item=explode(",", $item); 
                              $results_array = array(
                                      'category' =&gt; $item[0],
                                      'id' =&gt; $item[1]
                                      );
                              $this-&gt;db-&gt;set($results_array);
                              $this-&gt;db-&gt;insert('table', $results_array);
                      }
      }
  </code></pre>