Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $SQL_HOST = "localhost";
- $SQL_USER = "root";
- $SQL_PASS = "";
- $SQL_DB = "jbcash";
- $sql = new mysqli($SQL_HOST, $SQL_USER, $SQL_PASS, $SQL_DB);
- $result = $sql->query("SELECT * FROM jbcash ORDER BY cash DESC LIMIT 15;");
- ?>
- <html>
- <body>
- <title>Jailbreak Cash Top15</title>
- <body style="background-color:gray;">
- <center>
- <table border="1">
- <tr>
- <th>Rank</th>
- <th>Name</th>
- <th>Cash</th>
- </tr>
- <?php
- $row = 0;
- while(($data = $result->fetch_array())) {
- ?>
- <tr>
- <td><?= ++$row ?></td>
- <td><?= $data['name'] ?></td>
- <td><?= $data['cash'] ?></td>
- </tr>
- <?php
- }
- $result->close();
- $sql->close();
- ?>
- </table>
- </center>
- </body>
- </html>
Add Comment
Please, Sign In to add comment