login with user level access

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jauson
Forum Contributor
Posts: 111
Joined: Wed Oct 05, 2011 12:59 am

login with user level access

Post by jauson »

does anyone how to build a login with user access level in php? could you please advise me how to do int? tnx
uday8486
Forum Newbie
Posts: 22
Joined: Fri Oct 28, 2011 11:42 pm
Location: Pune, India

Re: login with user level access

Post by uday8486 »

First things which you need here is to decide what are the type of user access levels which you need. And what are access level for each user.
Then you need to create a table in database for each roles access and also what is accessible to each user of a particular type.

Suppose you have a page which is accessible to type1 user, you need to check first whether the user has access to this page or not and then perform neccessary steps.
jauson
Forum Contributor
Posts: 111
Joined: Wed Oct 05, 2011 12:59 am

Re: login with user level access

Post by jauson »

I made a table user

id
name
access_level e.g.
(1) corresponding to view
(2) view/edit

but in my script i didnt know how to start the code.
Post Reply