I have a php script. I'm trying to set it up so it backs up a database table to the server.
in the php, I call...
I get the following error...
1064: You have an error in your SQL syntax near '' FROM members' at line 2
If I run the sql statement in MySQL CC on my linux box it works fine! Help anyone.
mysql and php are on a linux box. Regular Select statements work fine.
in the php, I call...
Code:
SELECT * INTO OUTFILE '".$bck_dir."/mdb-backup.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"' ESCAPED BY '\\' LINES TERMINATED BY '\r\n' FROM members
I get the following error...
1064: You have an error in your SQL syntax near '' FROM members' at line 2
If I run the sql statement in MySQL CC on my linux box it works fine! Help anyone.
mysql and php are on a linux box. Regular Select statements work fine.