I have the below code, that seems to fail, but I’m not sure why. If I echo our the $check[“team”] variable, I get “Group 1”, but my page still says I don’t have priveleges.
[code]
if (($check[“team”] != “Group 1”) || ($check[“team”] != “Flower Delivery”))
{
// Feel free to change the error message below. Just make sure you put a “” before
// any double quote.
print “<p><strong>Illegal Access</strong></p>”;
print “<p><strong>You do not have permission to view this page.</strong></p>”;
//exit; // End program execution. This will disable continuation of processing the rest of the page.
}
What I want is that if you are not a member of “Group 1” or “Flower Deliver”, don’t show the page.
Thanks