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` WHERE name != Account Manager ORDER BY rebirths DESC");
- $x = 1;
- if (!$sqlconnect) {
- die("error" . mysql_error());
- }
- if(isset($SQL)){
- $main_content .= "<table style='font-size: 110%;font-weight: bold;'><b><u>Rebirth Highscores: </b></table>";
- while ($row = mysql_fetch_array($query)) {
- $main_content .= "<br />";
- $main_content .='#' . $x;
- $x++;
- $main_content .=' ' . $row['name'];
- $main_content .="<br />";
- $main_content .="Rebirths:";
- $main_content .=$row['rebirths'];
- $main_content .="<br />";
- }
- }
- else {
- die("error: not connected to db");
- }
- ?>
Add Comment
Please, Sign In to add comment