|
Posted by "Ross" on 07/11/05 13:20
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@domain.com
$email_addresses[1] = name1@domain.com
$email_addresses[2] = name2@domain.com
into
$recipients= "name0@domain.com, name1@domain.com, name2@domain.com";
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.
Navigation:
[Reply to this message]
|