I am building an entire system using PHP and MySQL.
I want to create usergroups.
For example
I want ADMIN1 to be able to ADD USER, and REMOVE USER
BUT
I want ADMIN2 to be able to ADD USER only
What is the standard way to do this?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use a simple login system and use sessions to allow access to certain pages e.g.
This example just stops the user from accessing any other pages without first logging in. The login page would change the session like so:
That’s just a basic example but hopefully you can see what can be done using a user’s table and sessions 🙂