i have a login script that has rank groups and there is 1 thats just a normal member and the other is officer/warrant officer and the other is generals and then last but not least commanders
when i login in as a test account called fred it only shows members and the officers and warrant officers console option his rank value is 26 why is this?
This is my ranks part of the script
[code=php]
if($data[‘rank’]<=26 && $data[‘rank’]>=11)
{
include(“includes/officers.inc.php”);
}
else if($data[‘rank’]<=26 && $data[‘rank’]>=22)
{
include(“includes/generals.inc.php”);
}
else if($data[‘rank’]<=26 && $data[‘rank’]>=26)
{
include(“includes/commanders.inc.php”);
}
How can i fix this?