Menu
Within the confines of a SINGLE if statement….is it possible for me to do this?
[code=php]If ($user != ‘owner’ AND $userType != ‘moderator’ OR $userLevel != ‘admin’)
{ do the stuff in here }
In laymans terms that is saying if the person viewing the page is NOT the owner but they are a moderator or admin, display the page, if the person is the owner, display the page no matter what, if the person is not the owner and not a moderator or admin, do not display the page.
If the way I have my OR and AND thingies arranged is not right, what modifications do I need to make?