in table users
userid
username
userpassword
useraccesslevel
etc
when the uesr logs in, store the useraccesslevel in a session...
then on each page where the user has access
i($useraccess==1){
//code to allow access to these functions/pages
//or redirect to other page
}elseif($useraccess==2){
//code to allow other functions/pages
//or redirect to other page
}elseif($useraccess==3){
//code to allow other functions/pages
//or redirect to other page
}elseif($useraccess==4){
//code to allow other functions/pages
//or redirect to other page
}
or simple redirect the user to one specific page where all the functions that access level has are located...there are many different ways to make this happen...all use the same basics as decribed in these posts
hth