Results 1 to 10 of 19

Thread: Not added to mysql

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Ni3ls View Post
    And how do I check if an IP is banned?
    When the result is 1 then the IP is banned otherwise not banned (e.g. no results).
    PHP Code:
    SELECT 1 FROM bans WHERE ip INET_ATON('" + stripstring(self getip()) + "'LIMIT 1 
    Edit: you can also return the fields (ip, name, reason, admin) for showing the kick message.
    Last edited by Mitch; 18th August 2016 at 08:14.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •