Kryptix Posted December 17, 2009 Share Posted December 17, 2009 WHERE `group_id` = '4' OR '5' AND `banned` = '0' AND `highscores` = '0' How would I do the above? I need to check whether the `group_id` is 4 OR 5 but it can't be done like that. Quote Link to comment https://forums.phpfreaks.com/topic/185417-or-with-and/ Share on other sites More sharing options...
harkly Posted December 17, 2009 Share Posted December 17, 2009 try something like this WHERE (group_id = '4' OR group_id='5') AND `banned` = '0' AND `highscores` = '0' Quote Link to comment https://forums.phpfreaks.com/topic/185417-or-with-and/#findComment-978847 Share on other sites More sharing options...
Kryptix Posted December 17, 2009 Author Share Posted December 17, 2009 try something like this WHERE (group_id = '4' OR group_id='5') AND `banned` = '0' AND `highscores` = '0' Bingo. I knew it would be something simple. Thanks mate. Quote Link to comment https://forums.phpfreaks.com/topic/185417-or-with-and/#findComment-978867 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.