Help please. I'm running this in my script:
// load the file list from FileList.txt
$sql = "LOAD DATA LOCAL INFILE 'N:\\\\Tracker\\\\Webloads\\\\LoadFiles.txt' INTO TABLE loadfiles FIELDS TERMINATED BY ';' OPTIONALLY ENCLOSED BY '' LINES STARTING BY '' TERMINATED BY '\r\n'";
$result = mysql_query($sql) or die($sql . '<br />' . mysql_error());
and I'm getting this as the result
LOAD DATA LOCAL INFILE 'N:\Tracker\Webloads\LoadFiles.txt' INTO TABLE loadfiles FIELDS TERMINATED BY ';' OPTIONALLY ENCLOSED BY '' LINES STARTING BY '' TERMINATED BY ' '
File 'N:\Tracker\Webloads\LoadFiles.txt' not found (Errcode: 2)
The file is there. I've got C:/ my.cnf with this in it
[client]
local-infile=1
on my PC.
Any ideas????
PS the actual script has 4 slashes, but they get stripped out with the php tags.