Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


objnoob last won the day on December 4 2013

objnoob had the most liked content!

Community Reputation

8 Neutral

About objnoob

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling
  1. A leading and trailing single quote would help too. See in red below. $sql = "INSERT IGNORE INTO " .$table. "VALUES ('" . implode("','", $data) . "')";
  2. Yerp. And, you do it here: while (($data = fgetcsv($handle, 10000, $delimiter)) !== FALSE) { if( count($data) !== 10 ) continue; # if the column count is not 10, continue to the next row; change 10 to whatever foreach($data as $i => $content) { $data[$i] = $csoport_kod->real_escape_string($content); } } If a row doesn't have the same number of columns..... the CSV is not properly formatted. You should get CSV fixed... fix the problem at the source, if you can.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.