Working with a PHP Login System
OK,
I have a question...
I am working on my school closing system, and I will be setting up offices/ districts.
I have an office list in which users in that office will be able to click and go into that office and if they have the correct user level echo Administrative Access Granted.
I have a main users database for there user level of how they access the system.. But how do I make a seperate database for checking to see if they are able to access the office/district and if they are an admin of that office. I use levels 1-10, 10 Administration which has access to an area I call Headquarters (one office), which even I would like to set certain levels in that as well...
The main point of this, if they don't have the user level to the office, or they are not in that office, I don't want that office to show on the district list.
Then in there user profile, I want it to say:
User Level: 10- Administration (e.g. what ever there user is).
Can you please help me?
Thank you.
Mike
P.S. My system uses cookies.
|