User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 429,761 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,927 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting

Help: Multiple user levels code

Join Date: May 2008
Location: Swindon, UK
Posts: 146
Reputation: xan is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 23
xan's Avatar
xan xan is offline Offline
Junior Poster

Re: Help: Multiple user levels code

  #5  
May 6th, 2008
You can pass data between pages either using sessions or cookies,

In the database you would need to have another column along with the username and password for the user level or status.

The simplest way to have user level restrictions would be to have tiers, for example, photographers are level 1, users are level 2, these would need to be sequential. And in the code check the users level field in the DB to see if they have permission to access the page. Level 1 would be able to get to anything for 1 and higher, level 2 for 2 and higher etc..

Have a look on Google, there are alot of articles on this subject. As well as sessions and cookies.
Reply With Quote  
All times are GMT -4. The time now is 3:30 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC