Got it to work. Thanks to who was gonna help.
<html>
<head>
<title>NBW</title>
</head>
<body>
<?
//Connect to mysql server
$con = mysql_connect("localhost","user","pass");
mysql_select_db("nba",$con);
$sqloo = "SELECT name, team, SUM(pts)/COUNT(pts), COUNT(name) FROM stats
GROUP BY NAME ORDER BY `SUM(pts)/COUNT(pts)` DESC LIMIT 5 ";
$fox = mysql_query($sqloo,$con);
?>
<table width="164" border=1 >
<thead>
<td><font size="2">Name</font></td>
<td><font size="2">Team</font></td>
<td><font size="2">PTS</font></td>
<td><font size="2">Games</font></td></thead>
<?
while ($res = mysql_fetch_array($fox))
{ // repeated rows will be done in the table using while loop, each
// row contains data from DB
?>
<tr>
<td><font size="2">
<?=$res['name'] ?>
</font></td>
<td><font size="2">
<?=$res['team'] ?>
</font></td>
<td><font size="2">
<?=$res['SUM(pts)/COUNT(pts)'] ?>
</font></td>
<td><font size="2">
<?=$res['COUNT(name)'] ?>
</font></td>
</tr>
<? } ?>
</table>
<?
//Connect to mysql server
$con = mysql_connect("localhost","user","pass");
mysql_select_db("nba",$con);
$sqloo = "SELECT name, team, SUM(rebounds)/COUNT(rebounds), COUNT(name) FROM stats
GROUP BY NAME ORDER BY `SUM(rebounds)/COUNT(rebounds)` DESC LIMIT 5 ";
$fox = mysql_query($sqloo,$con);
?>
<table width="164" border=1 >
<thead>
<td><font size="2">Name</font></td>
<td><font size="2">Team</font></td>
<td><font size="2">Rebounds</font></td>
<td><font size="2">Games</font></td></thead>
<?
while ($res = mysql_fetch_array($fox))
{ // repeated rows will be done in the table using while loop, each
// row contains data from DB
?>
<tr>
<td><font size="2">
<?=$res['name'] ?>
</font></td>
<td><font size="2">
<?=$res['team'] ?>
</font></td>
<td><font size="2">
<?=$res['SUM(rebounds)/COUNT(rebounds)'] ?>
</font></td>
<td><font size="2">
<?=$res['COUNT(name)'] ?>
</font></td>
</tr>
<? } ?>
</table>
<?
//Connect to mysql server
$con = mysql_connect("localhost","user","pass");
mysql_select_db("nba",$con);
$sqloo = "SELECT name, team, SUM(assist)/COUNT(assist), COUNT(name) FROM stats
GROUP BY NAME ORDER BY `SUM(assist)/COUNT(assist)` DESC LIMIT 5 ";
$fox = mysql_query($sqloo,$con);
?>
<table width="164" border=1 >
<thead>
<td><font size="2">Name</font></td>
<td><font size="2">Team</font></td>
<td><font size="2">Assist</font></td>
<td><font size="2">Games</font></td></thead>
<?
while ($res = mysql_fetch_array($fox))
{ // repeated rows will be done in the table using while loop, each
// row contains data from DB
?>
<tr>
<td><font size="2">
<?=$res['name'] ?>
</font></td>
<td><font size="2">
<?=$res['team'] ?>
</font></td>
<td><font size="2">
<?=$res['SUM(assist)/COUNT(assist)'] ?>
</font></td>
<td><font size="2">
<?=$res['COUNT(name)'] ?>
</font></td>
</tr>
<? } ?>
</table>
<?
//Connect to mysql server
$con = mysql_connect("localhost","user","pass");
mysql_select_db("nba",$con);
$sqloo = "SELECT name, team, SUM(blocks)/COUNT(blocks), COUNT(name) FROM stats
GROUP BY NAME ORDER BY `SUM(blocks)/COUNT(blocks)` DESC LIMIT 5 ";
$fox = mysql_query($sqloo,$con);
?>
<table width="164" border=1 >
<thead>
<td><font size="2">Name</font></td>
<td><font size="2">Team</font></td>
<td><font size="2">Blocks</font></td>
<td><font size="2">Games</font></td></thead>
<?
while ($res = mysql_fetch_array($fox))
{ // repeated rows will be done in the table using while loop, each
// row contains data from DB
?>
<tr>
<td><font size="2">
<?=$res['name'] ?>
</font></td>
<td><font size="2">
<?=$res['team'] ?>
</font></td>
<td><font size="2">
<?=$res['SUM(blocks)/COUNT(blocks)'] ?>
</font></td>
<td><font size="2">
<?=$res['COUNT(name)'] ?>
</font></td>
</tr>
<? } ?>
</table>
<p> </p></body>
</html>
I had to use 4 querys because its 4 different leader tables.