Re: Saving DB Resuts to a file
| From: | Ray Hunter | Date: | Mon, 15 Apr 2002 17:54:59 +0000 |
| Subject: | Re: Saving DB Resuts to a file | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18517@lists.php.net to get a copy of this message | ||
Chris,
You will want to use the file i/o functions to write to a file and save the
db info to a file.
http://www.php.net/manual/en/function.fwrite.php
Ray "BigDog" Hunter
"Chris Payne" <chris@planetoxygene.com> wrote in message
news:000c01c1e258$f33f5ce0$f7fea8c0@chris...
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