depending on the source of your mysql data and how it is stored can't you retrieve it and just add it to the $message variable?
format it as you with (HTML or not, etc) .. and mail away.
for multiple rows change the while up a little..
Description |
Cost |
Weight |
Color |
'
$query = "SELECT * FROM yourtable WHERE youridentifier = 'unique'"
$result = mysql_query($query) or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
$message .= " ";
$message .= " ".$row['itemdescription']." | ";
$message .= " ".$row['cost']." | ";
$message .= " ".$row['shippingweight']." | ";
$message .= " ".$row['color']." | ";
$message .= "
";
}
// then update the message with the ending
$message .= "