multi level users admin, staff, customer
Hi I have only done access levels for page per page view. But what I am attempting now is a little different and just wanted clarification.
I am using one single page (index.php) and the content of this is determined by URL variables. Now I have a login system which will comprise on Admin, Staff and Customers.
In my database I have each page of the website as a record in a table. and in each record there is a userlevel field (1) admin (2) staff (3) customers
Now the whole website can be viewed by all the world..except the admin can create a "customer account" or a "staff account" so that when either a customer or a staff member logs on they will see additional menu links which they can view the content for.
now my question which is the best approach for this. because im trying to figure out the rules or recordsets so that all content is viewable except the staff and customer content which will only show up if they are logged in.