I really can't get this working.
The users account type is assigned to the $_SESSION["user_type"].
You have 2 account types that can edit orders. Admins(admin) and Sub Admins(sadmin).
The "content_id" is the information displayed depending on the the page type.
What's wrong with this statement?
And yes. ob_start();
and session_start();
are running
//Disallow all users from edit orders. Except admins and Sub admins.
if ($_SESSION["user_type"] !== "admin" || $_SESSION["user_type"] !== "sadmin" && $_GET["content_id"] == "edit_order"){
header ("location:home.php");
}