Page 1 of 1

Exporting mysql database records to txt file

Posted: Thu Nov 12, 2009 1:41 am
by urooj786
I have a database in mysql and in it a table named emaillist there are lots of email are there , i want to export them
in a txt file using PHP. can anyone help me out????
:x

Re: Exporting mysql database records to txt file

Posted: Thu Nov 12, 2009 9:20 am
by _64k
I would get the content of the table into an array, loop through the items writing them to a file in CSV format (easily imported back into a DB then)