<?PHP
error_reporting (E_ALL & ~ E_NOTICE & ~ E_DEPRECATED);
$connecta = mysql_connect('localhost','ragnarok','ragnarok');
$db = mysql_select_db('pro_rag');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="estilo.css" />
</head>
<body>
<div id="ranking">
<table border="0" cellpadding="0" cellspacing="0">
<tr align="center" id="title">
<td>Posição</td>
<td>Nome</td>
<td>K</td>
<td> </td>
<td> </td>
<td>D</td>
<td> </td>
<td> </td>
<td>P</td>
<td> </td>
<td> </td>
</tr>
<?PHP
$tabela = mysql_query("SELECT * FROM pvp_ranking ORDER BY ration DESC LIMIT 20") or die(mysql_error());
$pos = 1;
while($pvp = mysql_fetch_assoc($tabela)){
echo '
<tr align="center" id="player">
<td>'.$pos.'º</td>
<td>'.$char['name'].' </td>
<td>'.$pvp['wins'].' </td>
<td> </td>
<td> </td>
<td>'.$pvp['loss'].' </td>
<td> </td>
<td> </td>
<td>'.$pvp['ration'].'</td>
<td> </td>
<td> </td>
</tr>
';
$pos++;
}
?>
</table>
</div>
</body>
</html>