I am using Codeigniter to parse an uploaded CSV file (which is a multi-dimensional array) in the database . I have tried to parse everything coma correctly, but the "id" column in mysql is less because it reads "text", and not "text, text, text". help!? * For reference: * print_r ($ data ['csvData']); Array ([category, id] = & gt; Array ([category, id] => text1, "text, text, text") [1] = & gt; Array ([category, id] = & gt; {Foreach ($ line as item $) {$ item = explosion (",", $ item), foreach ($ data ['csvData'] as $ line) {text2, "text, text, text" ; $ Results_array = array ('category' => $ item [0], 'id' = & gt; $ item [1]); $ This- & gt; Db- & gt; Set ($ results_array); $ This- & gt; Db- & gt; Insert ('Table', $ results_array); }} My unexpected guess: $ Item = explosion (",", $ item); Explode is $ item which is text1,...