|
You want:
if( ($_SESSION["account_type"] == 1) || ($_SESSION["account_type"] == 2) ) {
A few points:
1) You need to do each comparison completely (as opposed to the "if value equals 1 or 2" you need to do "if value equals 1 or value equals 2").
2) When comparing with numbers, don't put the numbers in quotes. You are comparing to a string that represents a number... normally this works, but not always.
3) !== is "NOT equals" not "equals" which is what you really wanted.
4) Using the '!==' and '===' operators compares types, too, which is really not what you want here... hence you would use '!=' or '==' instead.
|