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 PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>  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";
>         $result = mysql_query($sql);
>         $num_rows = mysql_num_rows($result);
>
>         while ($myrow = mysql_fetch_array($result)){
>
>          $recipient=$myrow["email"] . ",";
> }
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Best regards,
>  Richard
> mailto:[EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to