Forums

PHP

This topic is locked

login by multiple user level

Posted 12 Jun 2003 11:20:59
1
has voted
12 Jun 2003 11:20:59 Adam Davies posted:
Before I start playing around trying to do this, I though it would worth knowing if anyone knows the answer before I start work (because of time limits in development).

what I will be trying to do is this in a user table in mysql avery user has a group_level so that I can restrict access to pages depening on their level of access, BUT some people will have access to more than grouip page so for example there are 3 users A, B & C ,

A has access to pages 1
B has access to pages 2
C has access to pages 1, 2 & 3.

The way im thinking at the moment is that if each user record has a field for each page that is available and giving it a 1 or 0 value then when the user clicks on that page, the page checks that if the value is 1 it lets them in , if it's 0 it becomes a failed login.

Is there a more cleaner and compact way of doing this.



Reply to this topic