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. Link to comment https://forums.phpfreaks.com/topic/59282-what-does-this-mean/ 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. Link to comment https://forums.phpfreaks.com/topic/59282-what-does-this-mean/#findComment-294433 Share on other sites More sharing options...
trq Posted July 10, 2007 Share Posted July 10, 2007 || means or Link to comment https://forums.phpfreaks.com/topic/59282-what-does-this-mean/#findComment-294434 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 Link to comment https://forums.phpfreaks.com/topic/59282-what-does-this-mean/#findComment-294436 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.