Advertisement
Kimeraweb

Untitled

Jul 1st, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?php
  2. mysql_connect($serverIP,$user,$password) or DIE ("No se pudo establecer conexion con el servidor.");
  3. mysql_select_db($dbaseName) or DIE ("No se pudo conectar a la base de datos.");
  4.  
  5. $query = mysql_query("Select * from ranks order by points Desc");
  6.  
  7. echo "<table>";
  8. echo "<tr><td>SteamId</td><td>Name</td><td>Points</td><td>";
  9. while ($a=mysql_fetch_array($query))
  10. {
  11.     echo "<tr><td>".$a['steamId']."</td><td>".$a['lastDisplayName']."</td><td>".$a['points']."</td></tr>";
  12. }
  13.  
  14. echo "</table>";
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement