GENTS... any help would be greatly appreciated... I've been seeking a solution for ages and I am so close... but there is 1 problem.
This is my code...
mysql_query('LOAD DATA LOCAL INFILE \'' . $CSVFile_calls . '\' INTO TABLE mkp_calls FIELDS TERMINATED BY "," LINES TERMINATED BY "\r\n";') or die($failed . my_error());
basically, it puts a csv file into mysql... all records are successfully imported and I thought I was done. Now, I discover that any record with a comma in the csv file gets screwed up... I'm guessing because the import thinks it is the end of a record.
So, does anyone know how I can strip out unwanted comma's before I do my import please...
Many thanks