By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 1,817 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

two types of user in php

P: 5
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.
Apr 25 '10 #1
Share this Question
Share on Google+
1 Reply


Atli
Expert 5K+
P: 5,058
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.
Apr 25 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.