scitrenbaum Posted August 19, 2007 Share Posted August 19, 2007 I am producing a password-protected directory for a condo association using PHP/MySQL. Basically I have it set up so the residents can login/edit their info/and view directory. I have an access level set for them as "member". This all works nice and dandy and I am able to pass the user ID. My main issue is for the administrator: He/she needs to login, add user, delete user, edit all users and view the directory. I am having an issue logging this individual in. So my main issues are as follows: 1) assigning this access level 2) get access level (so the admin can login and view those php files) Does this make sense? Let me know what code you will need to help me remedy this issue. I would really appreciate any help you could provide me! Quote Link to comment https://forums.phpfreaks.com/topic/65737-issue-with-access-level-please-help/ Share on other sites More sharing options...
uwannadonkey Posted August 20, 2007 Share Posted August 20, 2007 set a unique number for admin, lets say 127, as it is in my game then on every admin page have it so that5: if ( $user->member == 127) echo'whatever u want'; else echo'YOU ARE RESTRICTED. put that on every page:) Quote Link to comment https://forums.phpfreaks.com/topic/65737-issue-with-access-level-please-help/#findComment-328398 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.