I have this code
LOAD DATA INFILE '$filename' INTO TABLEpicklistFIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n';
but when I execute it, this error displays:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\wamp\www\dX\csvImport-picklist.php on line 20
What is wrong with my SQL query?
Probably you have an unescaped ” (in the enclosed by) but impossible to say without seeing more.