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. 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' 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. Link to comment https://forums.phpfreaks.com/topic/185417-or-with-and/#findComment-978867 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.