Re: AW: [PHP] export mysql to csv prob

2005-02-11 Thread Redmond Militante
they're on separate machines, this seems the fastest method, but i'm not sure if it's possible given my setup [Fri, Feb 11, 2005 at 09:48:18AM +] This one time, at band camp, Tom said: > If your mysql server has access (or can have access) to the directory > where you want to dump the file,

Re: AW: [PHP] export mysql to csv prob

2005-02-11 Thread Richard Lynch
> i have a script that exports the result of a mysql query to a csv file > suitable for downloading > > the code looks like > $result = mysql_query("select * from user,mjp1,mjp2,mjp3,mjp4"); > while($row = mysql_fetch_array($result)) { > $csv_output .= "$row[userid] $row[firstname] $row[lastname]\

Re: AW: [PHP] export mysql to csv prob

2005-02-11 Thread Tom
If your mysql server has access (or can have access) to the directory where you want to dump the file, you can just use the "SELECT INTO OUTFILE FIELDS TERMINATED BY ','..." syntax as your query, which is very fast. Mirco Blitz wrote: Hi, Probably the Pear Excel_Syltesheet_Writer works for