prcollin Posted September 5, 2008 Share Posted September 5, 2008 Can anyone point me to a great resource for created user levels for the login. Basically I have three menus. Main, Top and Management I want to assign everyone besides management as a lvl 1 and everyone that is management lvl 2 then set it so that the management menu only shows up when lvl 2 users sign in. can i do something like SELECT * FROM user WHERE userName = '$username'; if user lvl = 2 display page with management menu (which I am assuming it would be easiest to create a div or something then just omit it else display page wihtout management meny or something of that sor?? can i do it like that or is there an easier way. I am ne Link to comment https://forums.phpfreaks.com/topic/122925-user-level-system9-really-easy-one/ Share on other sites More sharing options...
runnerjp Posted September 5, 2008 Share Posted September 5, 2008 yep ... in your table ad collum status or something and have it 1,2 or 3 then call it like so... <?php if($status == 1){ echo 'the menu for admin'; } ?> Link to comment https://forums.phpfreaks.com/topic/122925-user-level-system9-really-easy-one/#findComment-634865 Share on other sites More sharing options...
prcollin Posted September 5, 2008 Author Share Posted September 5, 2008 cool i am at work and cant get to my editor that is why i was asking, so i can just make sure for when i go back home and write up the script. Thanks Link to comment https://forums.phpfreaks.com/topic/122925-user-level-system9-really-easy-one/#findComment-634867 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.