I supposed, as usal, that you. use mysql server
in this example we use mysql_fetch_array() function
Look to this code
<html>
<head>
<title>NBA Offecial!</title>
</head>
<body>
<?
//Connect to mysql server
$con = mysql_connect("localhost","user","password");
mysql_select_db("NBA",$con);
$sqloo = "SELECT name, team, SUM(pts), SUM(fgm), SUM(fga),
SUM(threepm), SUM(threepa), SUM(ftm), SUM(fta), SUM(orebounds),
SUM(drebounds), SUM(rebounds), SUM(blocks), SUM(steals), SUM(assist)
FROM stats GROUP BY name";
$fox = mysql_query($sqloo,$con);
?>
<table border=1 >
<thead>
<td>Name</td>
<td>Team</td>
<td>PTS</td>
<td>FGM</td>
<td>FGA</td>
<td>ThreePM</td>
<td>ThreePA</td>
<td>FTM</td>
<td>FTA</td>
<td>OreBounds</td>
<td>DreBounds</td>
<td>ReBounds</td>
<td>Blocks</td>
<td>Steals</td>
<td>Assist</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><?=$res['name']// this like echo ?></td>
<td><?=$res['team'] ?></td>
<td><?=$res['pts'] ?></td>
<td><?=$res['fgm'] ?></td>
<td><?=$res['fga'] ?></td>
/ Your table is so long, so add more cells as you need/
/ customize the table as you want and the field, from DB, you want to display
make its name as an array key of $res[] as shown above/
</tr>
<? } ?>
</table>
</body>
</html>
I hope this helps you and be what you really need, Feel free to ask about any
details about this