Okay im stumped as im wondering how would i merge 2 user ranks into one.
1st user rank <?php if ($user -> isAdmin($odb)) { ?>
2nd user rank <?php if ($user -> isStaff($odb)) { ?>
Okay im stumped as im wondering how would i merge 2 user ranks into one.
1st user rank <?php if ($user -> isAdmin($odb)) { ?>
2nd user rank <?php if ($user -> isStaff($odb)) { ?>
The "or" is actually not needed.
Your functions seems to return a boolean answer.
And boolean can be interpreted as 0 and 1 in a if.
if ($user -> isAdmin($odb) + $user -> isStaff($odb))
So by adding them together you get an answer from 0-2.
Where 0 is false, false and true, true is 2.
Since 1 and 2 is interpreted as true in PHP it will work without the or.
Try it out here: https://3v4l.org/rWf6C