jamila Posted May 1, 2013 Share Posted May 1, 2013 hey everybody ; i want to hide some tabs in the menu for users according to their privileges ; my table : user (id, name , pwd , state , histotic , report) state , historic and report ill take values : yes or no . and according to that if user 1 will have : state = yes , historic=no , report = no it means that in the menu the too tabs : historic and reort will be hidden . is it possible to do it in php ?? if it is any ideas how can i start it ?? thank u so much for helpin me Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted May 1, 2013 Share Posted May 1, 2013 The if construct should do what you're looking for: http://php.net/manual/en/control-structures.if.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.