	<table class="ranking-table">
                            <thead>
                            <tr class="main-tr">
                                <th style="text-align:center;">Posicao</th>
                                <th>Nome</th>
                                <th>Score</th>
                                <th>Proprietario</th>
                                <th>Membros</th>
                               
                            </tr>
                            </thead>
                            <tbody>
                            
                                  <? 
			  $Top = mssql_query("SELECT TOP 50 G_Name,G_Score,G_master,MemberCount from Guild order by G_Score desc");
			  for($i=0;$i<mssql_num_rows($Top);$i++) {
			  $DadosTop = mssql_fetch_row($Top);
			  $rank = $i+1;
			  
			 
			  echo '
				
 <tr>
 
                                        <td style=\"text-align:center;">'.$rank.'º</td>
                                        <td>
                                          <span class="f16"><span class="flag "></span><a href="javascript: void(0);" onclick="loading(\'?go=guild&g_name='.$DadosTop[0].'\', \'conteudo\');">'.$DadosTop[0].'</a></span> 
                                        </td>
                                        <td>'.$DadosTop[1].' Score</td>
                                        <td>'.$DadosTop[2].'</td>
                                        <td>'.$DadosTop[3].' Members</td>
                                        
                                    </tr>
				'; } 
				?> 
                             
                            </tbody>
                        </table>