Need a little help with array

From: Date: Wed, 16 May 2001 01:49:21 +0000
Subject: Need a little help with array
Groups: php.general 
Request: Send a blank email to php-general+get-52973@lists.php.net to get a copy of this message
I am trying to get the first name and Last name plus the email address out of the database in a format like this Richard Kurth<rkurth@pacifier.com>;Richard Kurth<rkurth@northwesthost.com> so I can put it in the BCC section of a mail all customer program What I have below works for getting the email out but I can't figure out how to get the rest out all together $sql = "SELECT email,fname,lname FROM customers"; $result = mysql_query($sql); $recipient = array(); while ($myrow = mysql_fetch_array($result)) $recipient[] = $myrow["email"]; $recipient_list = implode(",", $recipient); Best regards, Richard mailto:rkurth@pacifier.com

« previous php.general (#52973) next »