Guest User

Untitled

a guest
Jun 7th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2. $user = 'root';
  3. $password = '';
  4. $db = 'tfs';
  5. $sqlconnect = mysql_connect('localhost', $user, $password);
  6. $dbselect = mysql_select_db($db);
  7. $query = mysql_query ("SELECT rebirths, name FROM `players` ORDER BY rebirths DESC");
  8. $row = mysql_fetch_array ($query);
  9. if (!$sqlconnect) {
  10.     die("error" . mysql_error());
  11. }
  12. echo "<table style='font-size: 110%;font-weight: bold;'><b>Rebirth Highscores: </b></table>";
  13. while ($row = mysql_fetch_array($query)) {
  14.     echo "<br />";
  15.     echo $row['name'];
  16.     echo "<br />";
  17.     echo "Rebirths:";
  18.     echo $row['rebirths'];
  19.     echo "<br />";
  20. }
  21. ?>
Add Comment
Please, Sign In to add comment