Re: [PHP] Needing help hear

2001-05-15 Thread elias
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

Re: [PHP] Needing help hear

2001-05-15 Thread James Holloway
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

Re: [PHP] Needing help hear

2001-05-15 Thread Adaran (Marc E. Brinkmann)
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

[PHP] Needing help hear

2001-05-15 Thread Richard Kurth
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";