concateni i dati che hai estratto, ad esempio, in una tabella

Codice PHP:
$message "<html>... <table>";

while(
$row mysql_fetch_array(...))
{
   
$message .= "<tr><td>$row['campo_1']</td>...<td>$row['campo_n']</td></tr>";
}

$message .= "</table> ...</html>"