Jump to content

little problem.


seany123

Recommended Posts

but for example with this code..

 

if($player->staff != 1 || $player->staff != 4 || $player->staff != 5){
header("location: home.php");
}

 

it will redirect unless $player->staff is equal to 1, 4 or 5??

 

 

because i echo'd my $player->staff and it echo'd 5 so i shouldnt be redirected but i am.

 

Link to comment
https://forums.phpfreaks.com/topic/163750-little-problem/#findComment-864034
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.