Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user = 'root';
- $password = '';
- $db = 'tfs';
- $sqlconnect = mysql_connect('localhost', $user, $password);
- $dbselect = mysql_select_db($db);
- $query = mysql_query ("SELECT rebirths, name FROM `players` ORDER BY rebirths DESC");
- $x = 1;
- if (!$sqlconnect) {
- die("error" . mysql_error());
- }
- ?>
- <table style='font-size: 110%;font-weight: bold;'><b>Rebirth Highscores: </b></table>
- <?php
- while ($row = mysql_fetch_array($query)) {
- echo $x;
- while ($x <= $row) {
- $x++;
- }
- echo "<br />";
- echo $row['name'];
- echo "<br />";
- echo "Rebirths:";
- echo $row['rebirths'];
- echo "<br />";
- }
- ?>
Add Comment
Please, Sign In to add comment