<font color=blue>
$total = 0;
while ($myrow = mysql_fetch_row($result)) {
if ($myrow[7] != 3){
printf("<tr><td>%s</td><td>$%s<td</tr>\n",$myrow[0], $myrow[7]);
$total = $total + $myrow[7];
}
}
printf("<tr><td>&nbsp;</td><td>$%s<td</tr>\n",$total);
</font>
...or something to that affect.
-- Rich