
gkornbluth
Veteran
Jan 28, 2012, 9:13 AM
Post #1 of 3
(93 views)
Shortcut
|
|
Error in Array
|
Can't Post
|
|
Hi All, In an Ajax implementation that sends out emails, I’m using the following code to create a list of the recipient's email addresses separated by a comma.
// Get email list of those members with notifications set to 1. list($emailList,) = getRecords(array( "tableName" => "accounts", "where" => "notifications = 1", )); foreach( $emailList as $record ) { $emailList.= $record['email'] .","; } Problem is that when the list is created, the first email address has the word "Array" preceding it, IE:
Arraymyemail@bellsouth.net; jerry@jkwebdesigns.com Any suggestions would be super. Thanks, Jerry Kornbluth The first CMS Builder reference book is now available on-line! http://www.thecmsbcookbook.com
|