Someone helped me out earlier with a MATH FUNCTIOn,,awesome thanks!!! Now for the average, it's a baseball average and i would like to stop it at .123 no more then that third decimal spot. I have did some reading, and might have to you liek a 'ceil" function?? Don;t know how to quite do that,,but i figure I will prolly need to put something in the echo and it probably is somethign really easy I'm too dumb to figure out
Here is what I have,,wodnering where to put the rounding function and what exactly I am looking for to put in:
<?
$result = mysql_query ("SELECT SUM(hr) as hrSum, AVG(avg) as avgAvg from hit WHERE team='Ana'");
?>
while ($row = mysql_fetch_array($result))
{
echo <td><b>$row[hrSum]</b></td><td><b>$row[avgAvg]</b></td></tr>";
=========================================
Man you guys are awesome, I have leaped over some major headaches that have stumped me for a few weeks, and you guys are always helping!!! Thanks so much!!!