SecretBoss

Untitled

Nov 29th, 2015
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php
  2. $query = $koneksi->prepare("SELECT player_banned, player_ip, banned_for, banned_by FROM `playerbans` ORDER BY ban_id DESC LIMIT 30");
  3.  
  4. $query->execute();
  5. if($query->rowCount() == 0)
  6. {
  7. echo "<tr><td colspan='6'><small>There are currently no banned players.</small></td></tr>";
  8. }
  9. while($data = $query->fetch())
  10. {
  11.  
  12. echo "<tr><td>".$data['player_banned']."</td>";
  13. echo "<td>".$data['player_ip']."</td>";
  14. echo "<td>".$data['banned_by']."</td>";
  15. echo "<td>".$data['banned_for']."</td>";
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment