wizzy886 Posted October 30, 2013 Share Posted October 30, 2013 So i am working on a system to simply log in and out a user. I have a column in the data schema that is called user_level. If this is set to 0 it is a default user, if set to 1 it is an admin, and if set to 2 it is inactive. So i have tried to look up the rows value after a successful login and it doesn't appear to have the result i want. It ignores the users level and logs in anyway. login.php Quote Link to comment Share on other sites More sharing options...
Solution Ch0cu3r Posted October 30, 2013 Solution Share Posted October 30, 2013 On line 36 need to be checking to see if $row['user_level'] variable is equal to 2, not $user_level. Quote Link to comment 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.