how can we make two user ie admin and normal user in php so that we can give authorization to edit some content to admin user only.
two types of user in php
Collapse
X
-
Tags: None
-
Hey.
You add a column to your member database to store the level of access each user has; whether he/she is an admin, normal user, or anything else.
Then you simply fetch that info with your login script, store it with the login data (in a session, presumably) and verify that the user has permission to perform the requested action before actually doing it.
Comment