Saving DB Resuts to a file
| From: | Chris Payne | Date: | Fri, 12 Apr 2002 19:33:40 +0000 |
| Subject: | Saving DB Resuts to a file | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-18458@lists.php.net to get a copy of this message | ||
Hi there everyone,
I have a newsletter which works wonderfully, sends to everyone in the DB fine with error checking
etc ...... My problem is my client now wants to be able to easily save the email addresses from the
DB into a text file - so my question is, how can this be done?
Connecting to the DB and executing a search based on criteria is not a problem, the problem is how
do I write a text file which has the field email (From the table name newsletter) in it? I just
need to copy the contents of email to a text file, but missing our other columns such as id and
name.
Thanks for any help, it's very appreicated.
Chris