Hi all,
I've just switch from the NT/access/.asp world to Linux/mysql/adminmyphp/.php world and its all new to me. So sorry if questions are vague or ignorant.
Trying to create a page only viewable for logged in users with level 9 access to view and all others would be directed to an "access denied page" so I tried this...
<?PHP
include("include/session.php");
?>
<?
if($session->userlevel == ">9"){
$URL="../denied.php";
header ("Location: $URL");
exit;}
else{
}
?>
That seems to work fine if someone who is not logged in visits the page and for someone with a user level 9 but if someone with a user of say 3 logs in then visits the page they are not redirected.
Have I completely slaughtered the code, just missing something, or maybe a better way?
TIA for any help,
Steve