Looping mysql selection for email

This is a discussion on Looping mysql selection for email within the PHP Language forums, part of the PHP Programming Forums category; Iıve got a bunch of email addresses in a mysql table. I need a php script that will loop ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-01-2003
Joe
 
Posts: n/a
Default Looping mysql selection for email

Iıve got a bunch of email addresses in a mysql table. I need a php script
that will loop the results of a SELECT and format them so I can put them in
a php mail() function. Iım not too swift with php ... would this be a simple
script to code? Any help would be appreciated.

Reply With Quote
  #2 (permalink)  
Old 10-01-2003
Geoff Berrow
 
Posts: n/a
Default Re: Looping mysql selection for email

I noticed that Message-ID: <BBA06530.19DAE%jshockey@vbe.com> from Joe
contained the following:

> Iım not too swift with php ... would this be a simple
>script to code?


Yes. <g>
--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Reply With Quote
  #3 (permalink)  
Old 10-01-2003
Matthias Esken
 
Posts: n/a
Default Re: Looping mysql selection for email

Joe <jshockey@vbe.com> schrieb:

> Iıve got a bunch of email addresses in a mysql table. I need a php script
> that will loop the results of a SELECT and format them so I can put them in
> a php mail() function. Iım not too swift with php ... would this be a simple
> script to code?


Just to give you the idea:

while ($record = mysql_fetch_array($RESOURCE)) {
$field = $record['FIELDNAME'];
...
}

Regards,
Matthias
Reply With Quote
  #4 (permalink)  
Old 10-02-2003
Joe
 
Posts: n/a
Default Re: Looping mysql selection for email

Thanks Matthias. Looks pretty simple.

in article blfjs2.1mg.1@usenet.esken.de, Matthias Esken at
muelleimer2003nospam@usenetverwaltung.org wrote on 10/1/03 3:18 PM:

> Joe <jshockey@vbe.com> schrieb:
>
>> Iıve got a bunch of email addresses in a mysql table. I need a php script
>> that will loop the results of a SELECT and format them so I can put them in
>> a php mail() function. Iım not too swift with php ... would this be a simple
>> script to code?

>
> Just to give you the idea:
>
> while ($record = mysql_fetch_array($RESOURCE)) {
> $field = $record['FIELDNAME'];
> ...
> }
>
> Regards,
> Matthias


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:21 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0