ExecuteS(' DELETE FROM `'._DB_PREFIX_.'lapostews_pr` '); while($line = fgetcsv($f, 0, ';')) { if($line[0] == 'PR') { Db::getInstance()->ExecuteS(' INSERT INTO `'._DB_PREFIX_.'lapostews_pr` VALUES ( "'.pSQL($line[1]).'", "'.pSQL($line[2]).'", "'.pSQL($line[3]).'", "'.pSQL($line[4]).'", "'.pSQL($line[5]).'", "'.pSQL($line[6]).'", "'.pSQL($line[7]).'", "'.pSQL($line[8]).'", "'.pSQL($line[9]).'", "'.pSQL($line[10]).'", "'.pSQL($line[12]).'", "'.pSQL($line[14]).'", "'.pSQL($line[15]).'" ) '); } } fclose($f);