Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = "SELECT uid, rpname, wallet FROM darkrp_player WHERE LENGTH(uid) = 10 ORDER by wallet DESC LIMIT 10";
- if ($result = mysqli_query($link, $query)) {
- ?>
- <div align='center'>
- <table class="table table-striped table-dark">
- <tr>
- <th>Name</th>
- <th>Wallet</th>
- <?php while ($row = mysqli_fetch_assoc($result)) {
- ?>
- </tr>
- <tr>
- <td><?php echo $row['rpname']; ?></td>
- <td><?php echo $row['wallet']; ?></td>
- <?php
- }
- ?>
- </tr>
- </table>
- </div>
- $query = "SELECT uid, rpname, wallet FROM darkrp_player WHERE LENGTH(uid) = 10 ORDER by wallet DESC LIMIT 10";
- $dob = "SELECT name, created, last_online FROM darkrp_player ORDER by created DESC LIMIT 10";
- if ($result = mysqli_query($link, $query, )) {
- ?>
- <div align='center'>
- <table class="table table-striped table-dark">
- <tr>
- <th>Name</th>
- <th>Wallet</th>
- <?php while ($row = mysqli_fetch_assoc($result)) {
- ?>
- </tr>
- <tr>
- <td><?php echo $row['rpname']; ?></td>
- <td><?php echo $row['wallet']; ?></td>
- <?php
- }
- ?>
- </tr>
- </table>
- </div>
- <div align='center'>
- <table class="table table-striped table-dark">
- <tr>
- <th>Name</th>
- <th>First Joined</th>
- <th>Last Connected</th>
- <?php while ($row = mysqli_fetch_assoc($result)) {
- ?>
- </tr>
- <tr>
- <td><?php echo $row['name']; ?></td>
- <td><?php echo $row['created']; ?></td>
- <td><?php echo $row['last_online']; ?></td>
- <?php
- }
- ?>
- </tr>
- </table>
- </div>
- <?php
- mysqli_free_result($result);
- }
- mysqli_close($link);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement