Re: Login form + User level access

From: Date: Tue, 29 Jun 2010 19:58:10 +0000
Subject: Re: Login form + User level access
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-306535@lists.php.net to get a copy of this message
At 7:46 PM +0000 6/29/10, Carlos Sura wrote:
Hello everyone. I have this question: I'm developing a login system but what I need is to do is access levels I mean, in my database I have this users: Admin Superusers sales purchase etc So, What I do basically need is, when a user from sales log in.. I want him to see just the menu from SALES, He cannot see others menu options, and he can't get access, I was reading that I can do that with Switch, but really I have no idea about it... Any help? Thank you. Carlos Sura.
Carlos: That's a little like saying, "I want to build a car so I can drive around the country. I was reading that I could do that with a key, but I don't have any idea about it... Any help?" Yes, you can use a switch statement, but that just one control structure in a much, much larger application. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#306535) next »