spires Posted May 27, 2010 Share Posted May 27, 2010 Hi. I'm trying to select user from the database depending on the users access level. However, I can only select one level at a time. This is what I want to do: SELECT * FROM csv_login WHERE login_level='2' && login_level='4' But this will bring back nothing. It will only let me do: SELECT * FROM csv_login WHERE login_level='2' OR SELECT * FROM csv_login WHERE login_level='4' But not both. How do I get around this? Thanks for your help. Quote Link to comment https://forums.phpfreaks.com/topic/203061-mysql-select-help-needed/ Share on other sites More sharing options...
Mchl Posted May 27, 2010 Share Posted May 27, 2010 SELECT * FROM csv_login WHERE login_level='2' OR login_level='4' Quote Link to comment https://forums.phpfreaks.com/topic/203061-mysql-select-help-needed/#findComment-1064026 Share on other sites More sharing options...
spires Posted May 27, 2010 Author Share Posted May 27, 2010 Of Course Seems so obvious now. Thanks for your help Quote Link to comment https://forums.phpfreaks.com/topic/203061-mysql-select-help-needed/#findComment-1064031 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.