sure it won't like that!
patch the while{} body and make it look like:
$recipient .= $myrow["email"] . ",";
but better initialize the $recipient to "" before the while loop
and after the while loop do remove the last trailing ","
-elias
http://www.eassoft.cjb.net
"Richard Kurth" <[EMAIL PROTE
Hi Richard,
I *always* get this word wrong, but here goes You need to
"concantenate" (grimace), which means (simply) "add to" to the variable,
using .=
Modify your code slightly:
Notice the .= before $recipient = $email ?
Also why, is the $num_rows in there? It's not being used for
Hi Richard,
Richard> I am trying to pull all the e-mail out of the database and put them
Richard> in a format like this [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]
Richard> this is what I have now but I don't seam to be going in the right
Richard> direction. Could somebody give me
I am trying to pull all the e-mail out of the database and put them
in a format like this [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]
this is what I have now but I don't seam to be going in the right
direction. Could somebody give me a hint
$sql = "SELECT email FROM customers";
4 matches
Mail list logo