02-01-2010, 10:11 PM
|
#2 (permalink)
|
|
The Acquainted
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
|
what is $query ?? nothing is defined
you could use something like
Code:
$myFile = "test.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$query = "select * into outfile '$myFile' from <tablename>";
$result = mysql_query($query);
fclose($fh);
__________________
Thanks... Simon
Sex, Drugs & Linux Rules
|
|
|