game/pages/voir_classement.php

35 lines
944 B
PHP
Raw Normal View History

2007-10-27 10:00:00 +00:00
<?php
echo"<html>
2007-03-31 10:00:00 +00:00
<head>
2007-11-03 11:00:00 +00:00
<title>Halo battle</title>
<link rel=stylesheet media=screen type=text/css title=design href=descriptions/diz/base.css >
<meta http-equiv=pragma content=no-cache >
<meta http-equiv=content-type content=text/html;charset=iso-8869-1 >
<link rel=shortcut icon type=image/x-icon href=favicon.ico >
2007-10-27 10:00:00 +00:00
<style TYPE=text/css>
table {
margin-top: 25px;
}
TD.z {
min-width: 15px;
}
</style>
</head>
2007-11-03 11:00:00 +00:00
<body>";
2007-03-31 10:00:00 +00:00
2007-10-27 10:00:00 +00:00
require('../connectBDD.php');
2007-03-31 10:00:00 +00:00
2007-10-27 10:00:00 +00:00
echo "<table align=center><tr><td>Place</td><td>Race</td><td>Pseudo</td><td class=z>Points</td><td class=z>Flotte</td><td class=z>Recherches</td></tr>";
2007-11-03 11:00:00 +00:00
$ee = mysql_query("SELECT * FROM classement ORDER BY points DESC");
2007-03-31 10:00:00 +00:00
$i=1;
while ( $data = mysql_fetch_array($ee) ){
echo "<tr><td>".$i."</td><td>".$data['race']."</td><td>".$data['pseudo']."</td><td>".$data['points']."</td><td>".$data['flottes']."</td><td>".$data['recherches']."</td></tr>";
$i++;
}
2007-11-03 11:00:00 +00:00
echo "</table>
2007-03-31 10:00:00 +00:00
</body>
2007-11-03 11:00:00 +00:00
</html>";
?>