You can create a database table for your teams called teams and use a page like this to pull a list of teams from the database creating links to another page that will display the info you want. (Just change data to suit your needs)
teams.php
// retrieve all the rows from the database
$query = "SELECT DISTINCT category FROM `teams` ORDER BY team ASC";
$results = mysql_query( $query );
// print out the results
if( $results )
{
while( $contact = mysql_fetch_object( $results ) )
{
// print out the info
$id = $contact -> id;
$team = $contact -> team;
$stats = $contact -> stats;
echo( "<h3> * <a href='teamsorter.php?sorter=$team'>$team</a>");
Then create a page to display your information:
teamsorter.php
// Make the query.
$query = "SELECT team, stats, id FROM teams WHERE (team LIKE '$sorter') ORDER BY $order_by team ASC";
$result = @mysql_query ($query); // Run the query.
// Table header.
echo '<table align="center" cellspacing="0" cellpadding="5">
<tr>
<td align="left"><b>Team</b></td>
<td align="left"><b>Stats</a></b></td>
</tr>
';
// Fetch and print all the records.
$bg = '#eeeeee'; // Set the background color.
while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)) {
$bg = ($bg=='#eeeeee' ? '#ffffff' : '#eeeeee'); // Switch the background color.
echo '<tr bgcolor="' . $bg . '">
<td align="left">' . $row['team'] . '</td>
<td align="left">' . $row['stats'] . '</td>
</tr>
';
}
echo '</table>';