"LOAD DATA LOCAL INFILE ".$file_location." INTO TABLE p4p.users_csv_import
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\\n' STARTING BY ''
IGNORE 1 LINES";
Not sure what is incorrect, but it is with my single/double quotes.
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'assets/temp/p4p57.csv INTO TABLE p4p.users_csv_import FIELDS TERMINATED ' at line 1
LOAD DATA LOCAL INFILE assets/temp/p4p57.csv INTO TABLE p4p.users_csv_import FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' STARTING BY '' IGNORE 1 LINES
Filename: /Applications/MAMP/htdocs/models/user_import_model.php
Line Number: 28
$file_location? Can you should us what the string looks like with the variable interpolated?$file_locationquoted?