Im creating an authorization script and all is done except one thing.
My users have different access levels. 1, 2 and 3. Level 1 only has the privalge to see. 2 has the privalge to Add, and 3 has the privalge to See, Add and Delete but I have ran into a problem that I expected..
"SELECT * FROM $userstable WHERE Username='$PHP_AUTH_USER' and Password='$PHP_AUTH_PW' and ItemLevel='2'";
I am using this query? to confirm if someone has the clearance of Level 2. It works. But when someone inserts a password who has Level 3 Clearance, it should also allow him to pass through.
How do I do that?