>     The Problem:
>     I can't quite figure out how to take the results of the
> mysql_query() and assemble them into a string. In my experiments so far,
> I either get a "mysql_data_seek(): Offset 0 is invalid for MySQL result
> index" error, or my mail function sends to a blank address.

no guarantee it works:

$tantoQuery = "SELECT forum_members.emailAddress AS email FROM
forum_members, event_tanto WHERE forum_members.ID_MEMBER =
event_tanto.tanto AND event_tanto.event ='" . $show . "'";

$tantoResult = mysql_query($tantoQuery) or die('Query failed: ' .
mysql_error());

while ($tantoData = mysql_fetch_array($tantoResult, MYSQL_ASSOC))
{
        $tantoEmail[] = $tantoData['email'];
}

if (count($tantoEmail) > 0) {
        mail(implode(',',$tantoEmail), $subject, $mailcontent, $addHeaders);    
}


mysql_free_result($tantoResult);

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

Reply via email to