jbrill Posted July 10, 2007 Share Posted July 10, 2007 just a quick question, in this line of code: if($_SESSION['type'] == "admin" || $_SESSION['id']==$idr) what does the "||" mean and why will it not give the admin access to the page, only non admins... i want both to have access to the page. Quote Link to comment Share on other sites More sharing options...
per1os Posted July 10, 2007 Share Posted July 10, 2007 Or, if the session type is ADMIN or the session id is equal to $idr it enters the if. Quote Link to comment Share on other sites More sharing options...
trq Posted July 10, 2007 Share Posted July 10, 2007 || means or Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 10, 2007 Share Posted July 10, 2007 here is a good list of operators http://www.w3schools.com/php/php_operators.asp 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.