Created
December 5, 2011 23:06
-
-
Save iovino/1435830 to your computer and use it in GitHub Desktop.
Checks to see if a user is banned or not
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT user.username, | |
IF(usergroup.genericoptions & 32, 0, 1) AS is_banned | |
FROM user as user | |
INNER | |
JOIN usergroup AS usergroup | |
ON usergroup.usergroupid = user.usergroupid | |
WHERE userid = 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment