pessoal to com esse problema ae alguem me da uma força
<?php
include('config.php');
function top_ten_chars() {
$r=mssql_query('select top 100 * from '.DB_GAM.'.dbo.cabal_character_table order by exp desc,reputation desc,alz desc');
echo '<td><div id="marteGUI" style="display:block">';
echo '<table width="570" align="center" cellpadding="1" cellspacing="1">';
echo '<tr align="center" bgcolor="#333333" class="FocusWhiteB">';
echo '<td width="50" height="20" bgcolor="#333333"><span class="style2">Rank</span></td>';
echo '<td bgcolor="#333333"><span class="style2">Guilda</span></td>';
echo '<td width="80" bgcolor="#333333"><span class="style2">Honra</span></td>';
echo '<td width="80" bgcolor="#333333"><span class="style2">Membros</span></td>';
echo '</tr>';
for ($i=1;$i<=mssql_num_rows($r);$i++) {
$row = mssql_fetch_row($r);
$carray=decode_style($row[12]);
echo ' <td colspan="8" width="1" bgcolor="#CCCCCC"></td><td><img src='main/img/bs_1.gif' alt='Guerreiro'></td>';