function get_divisons(){
echo('<table width="430" border="0" align="center" class="norm_font">');
$fetch_divisions = mysql_query("SELECT * FROM `divisions` LIMIT 0 , 30");
while($divi = mysql_fetch_array($fetch_divisions)){
//Division info
echo('<tr>');
echo('<td width="152"><strong>Division '.$divi["division"].'</strong></td>');
echo('<td width="58"><div align="center">Wars</div></td>');
echo('<td width="72" class="won"><div align="center">Won</div></td>');
echo('<td width="83" class="equal"><div align="center">Equal</div></td>');
echo('<td width="66" class="lost"><div align="center">Lost</div></td>');
echo('<td width="94" height="24"><div align="center">Points</div></td>');
echo('</tr>');
$div = $divi["division"];
$fetch_teams = mysql_query("SELECT * FROM `team` WHERE `in_league` = 2 AND `division` = '$div' ORDER BY points, rounds_won DESC");
while($lteam = mysql_fetch_array($fetch_teams)){
// Team Information
echo('<tr>');
echo('<td width="152"><a href=?page=team_info?id='.$lteam["id"].'>'.$lteam["name"].'</a></td>');
echo('<td><div align="center">'.$lteam["wars"].'</div></td>');
echo('<td class="won"><div align="center">'.$lteam["won"].'</div></td>');
echo('<td class="equal"><div align="center">'.$lteam["equal"].'</div></td>');
echo('<td class="lost"><div align="center">'.$lteam["lost"].'</div></td>');
echo('<td height="24"><div align="center">'.$lteam["points"].'</div></td>');
echo('</tr>');
}
echo('<tr>');
echo('<td> </td>');
echo('</tr>');
}
echo('</table>');
}