Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $query = $koneksi->prepare("SELECT player_banned, player_ip, banned_for, banned_by FROM `playerbans` ORDER BY ban_id DESC LIMIT 30");
- $query->execute();
- if($query->rowCount() == 0)
- {
- echo "<tr><td colspan='6'><small>There are currently no banned players.</small></td></tr>";
- }
- while($data = $query->fetch())
- {
- echo "<tr><td>".$data['player_banned']."</td>";
- echo "<td>".$data['player_ip']."</td>";
- echo "<td>".$data['banned_by']."</td>";
- echo "<td>".$data['banned_for']."</td>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment