Exporting mysql database records to txt file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
urooj786
Forum Newbie
Posts: 12
Joined: Mon Nov 09, 2009 11:56 pm

Exporting mysql database records to txt file

Post 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
_64k
Forum Newbie
Posts: 16
Joined: Thu Nov 12, 2009 8:52 am

Re: Exporting mysql database records to txt file

Post 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)
Post Reply