Plz i have this problem i dont know how to differ between them to restrict access on certain pages?????????? i have restricted pages to registered users only ...... i dont know how to arrange the database too to make user types?? as i am new to PHP projects.....
You can add a field on a database - Data type : ENUM - Possible values : 0, 1, 2, 3, ... depending on the privilegies you want Then you test this field on you script to know what data you will display to the user.
first try to create a table that holds the user types. - Administrator - Registered User - Client - etc... then detect the user type of the user in your script... try to make the restrictions 1 - admin 2 - registered user 3 - client 4 - etc.