I must be missing something obvious.. trying to make an if, elseif, else statement... can you not do so with $_SESSION vars?
Code:
<?php
echo '<p>usrLevel is: '.$_SESSION[usrLevel].'</p>'; // this outputs the value 6
if($_SESSION[usrLevel]<3){
echo '<p>userLevel is below or equal to 2</p>';
}elseif(($_SESSION[usrLevel]>2) OR ($_SESSION[usrLevel]<6)){
echo '<p>userLevel is between 2 and 5</p>'; // this is the outputted statement despite the userLevel equalling 6
}else{
echo '<p>userLevel is above 5</p>';
}
?>
Output:
Code:
usrLevel is: 6
userLevel is between 2 and 5
please educate me.. I clearly am missing the boat or need another cup of coffee.