You are here: getting the email addresses in a sendable format. « PHP « IT news, forums, messages
getting the email addresses in a sendable format.

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация