Hi.
Im having an issue with using LOAD DATA LOCAL.
I developed some functionality that worked fine on our testing system and when it was switched over to the clients host it was discovered that they ran their web and db servers seperately and having no access to the db server directly I realised that Id need to use the LOCAL keyword.
heres my code.
mysql_query("LOAD DATA LOCAL INFILE 'shipping.csv' INTO TABLE orders FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n'");
the problem is that the file isnt getting read by the db but returns no errors.
the question where is the 'local' file actually need to sit?
the actual user computer or the web server? and how should it be pathed?
as I mentioned the actual csv file is fine getting read into the ssytem directly on the server so Im assuming that the problem is the location of the file.
I read read all the documentation and forums and tried all locations and paths but still cant seem to get it into the right place.
can anyone help?
cheers.
Nick