Anyone have some code that helps you save a query to your hard drive as a CSV file.
while ($row = mysql_fetch_row($result)) {
$csvrec = join(',' , $row) . "\r\n";
fputs($handle, $csvrec) }
hth