Jump to content

Email MySQL array results


djones

Recommended Posts

You could do something like this.

[code=php:0]
$field = "begin list<br />";
while ($myrow = mysql_fetch_array($result)){
   $field .= $myrow['field'] . '<br />';.
}

$to = "someone";
$subject = "something";
$message = 'The is a list of someting: ' . $field;
//now send the message
[/code]

Hope that helps,
Tom

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.