$sql2 = mysql_query("LOAD DATA LOCAL INFILE '/home/usr/public_html/dir/corp_list.csv' INTO TABLE corp_list OPTIONALLY ENCLOSED BY '"' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n'");
As soon as I as Optionally enclosed by '"' (which is ' " '), I get a Parse error. It works without it, but there are some fields which are enclosed in quotes, not all records are, though
Some lines look like this:
123456, "Description, More", 6, 4
others like this
234567, Description, 7, 5
Any idea what I can do?