I've decided on using this
$rs = odbc_exec($db, $sql);
while (odbc_fetch_row($rs))
{
$callnum=odbc_result($rs,"Call Number");
$assto=odbc_result($rs,"Assigned To");
$openon=odbc_result($rs,"Opened On");
$summary=odbc_result($rs,"Summary");
$memo=odbc_result($rs,"Last Update");
$updateon=odbc_result($rs,"Last Updated On");
echo "<tr><td>$callnum<br></td>";
echo "<tr><td>$assto<br></td>";
echo "<tr><td>$openon<br></td>";
echo "<tr><td>$summary<br></td>";
echo "<tr><td>$memo<br></td>";
echo "<tr><td>$updateon<br></td>";
}
echo "</table>";
$to = "qqq@qqq.com";
$subject = "Priority 1 Incidents";
$message = "$callnum,$assto,$openon,$summary,$memo,$updateon";
$from = "Customer Support Interface";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
which gives me the info I need, however it only returns the last row in the $message, the sql returns all rows
please help