<center>
<?PHP
require('config.php');
$get_stones = ("Select AccountID,StoneCount from T_BLOOD_CASTLE order by StoneCount desc");
echo '
<table class="sort-table" id="table-1" height=0 border="0" cellpadding="4" cellspacing="0">
<thead><tr>
<td width=1 aling=left>#</td>
<td width=50 aling=left>Account</td>
<td width=50 aling=left>Stones</td>
</tr></thead>
';
for($i=0;$i < fetch_num_rows($get_stones);++$i)
{
$row = mssql_fetch_row($getstones);
$rank = $i+1;
echo "<tbody><tr>
<td align=left>$rank</td>
<td align=left><div class='link_rankings'>$row[0]</div></td>
<td align=left>$row[1]</td>
</tr></tbody>";
}
?>
</TABLE>
</center>