getting the email addresses in a sendable format.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a database of 300 email addresses retrieved with a select statement.

while ($row=mysql_fetch_array($result)) {

  $email_addresses[] = $row['email'];

  }

But I have having trouble assiging them to the variable $recipients. Really 
what i want is to convert

$email_addresses[0] = name0@xxxxxxxxxx
$email_addresses[1] = name1@xxxxxxxxxx
$email_addresses[2] = name2@xxxxxxxxxx

into

$recipients= "name0@xxxxxxxxxx, name1@xxxxxxxxxx, name2@xxxxxxxxxx";

Two points here...

(i) I believe php uses comas (,) instead of semi-colons(;) between the email 
addresses
(ii) does the space between addresses matter? I would rather have it as my 
user could see the recipeints more clearly.


R. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux