What you can do is to create user groups and then assign users to these user groups. Then you can give access to various portions of your sight according to the user group. You can do this simply by checking the if the user is in a user group that has permission to access a page before you have PHP do the code to create the button that gives access to that page.
What I mean is, let us say user "dave" is logged in. Then when you build up your page that dave has requested, some of the buttons and functionalities on that page may need certain access permissions. You then check if dave is part of the group that has the correct access before these buttons and functionalities are displayed.
You can always make a database table that stores the assignements of users to usergroups.
Thank you very much. I hope that I understand what you had said. Create Users and assign them to Groups that have been assigned permissions.
and generate links to pages which they can access. But if some user with a little privilege gets a URL to remove a record , how to find such things and place
restrictions. I am also confused about making permissions and assigning them.
How to determine that this page should not be accessed by this user even though the user has manually typed in a URL which he has no access.
I need some advice on this.
Can you give me a picture of how that works. Thanks