';
echo border('syellow','end');
}
if($display_ranks){
$query = "SELECT name, SUM(tickets) AS Sum_Tickets FROM $table GROUP BY name order by Sum_Tickets DESC";
$result = mysql_query($query) or die(mysql_error());
echo border('syellow','start', 'Ranking');
echo '
';
// Print out result
while($row = mysql_fetch_array( $result )) {
// Print out the contents of each row into a table
echo "