On our web site I have to setup a export function on page driven by php with a mysql backend is it possible to export data via sql? for example:
$sql="SELECT a,b,a+b INTO OUTFILE 'c:\result.text'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'
LINES TERMINATED BY '\n'
FROM test_table;";
and execute the sql, can this be done?? at all??
any pointers would be most welcome.
$sql="SELECT a,b,a+b INTO OUTFILE 'c:\result.text'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'
LINES TERMINATED BY '\n'
FROM test_table;";
and execute the sql, can this be done?? at all??
any pointers would be most welcome.