"SELECT Username, IP, Bantype FROM `bans` WHERE (IP = '192.168.1.3' AND Bantype = '1' AND Time = '0') OR (IP = '192.168.1.3' AND Bantype = '2' AND Time > '1') OR (IP >= '192.158' AND IP <= '192.178' AND Bantype = '3' AND Time = '0')"
I dont really know how to explain this..
WHERE
(IP = '192.168.1.3' AND Bantype = '1' AND Time = '0')
OR
(IP = '192.168.1.3' AND Bantype = '2' AND Time > '1')
OR
(IP >= '192.158' AND IP <= '192.178' AND Bantype = '3' AND Time = '0')
Something is wrong in the syntax, i have someone in the table named "bans" and his IP is 192.168.1.3 and the bantype = 1