Posted by Gerard Matthew on 04/26/06 01:06
$text ="This is costumers names".
for(i=0; $i < $results; i++)
{
$row=mysql_fetch_array($result_query);
$text .= $row['name']." ".$row['blabla']."\n";
}
$to = "blah@blah.com";
$subject = "whatever subject";
mail($to,$subject,$text);
In the above a dot (.) could be used to join strings and .= adds to the
content of the string variable.
Navigation:
[Reply to this message]
|