two types of user in php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandhya karki
    New Member
    • Apr 2010
    • 5

    #1

    two types of user in php

    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.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    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

    Working...