seany123 Posted June 17, 2009 Share Posted June 17, 2009 im quite tired so maybe this is just a stupid mistake i havn't spotted but why isnt this working?? if($player->username != $gang['leader']) || ($player->gang_edit != 1) { header("Location: ../your_gang/details.php"); } Link to comment https://forums.phpfreaks.com/topic/162497-solved-unexpected-t_boolean_or/ Share on other sites More sharing options...
seany123 Posted June 17, 2009 Author Share Posted June 17, 2009 oops i just realised how thats fixed but can anyone see anymore errors? because i know that my gang_edit == 1 but its still redirecting me. so ive now got if(($player->username != $gang['leader']) || ($player->gang_edit != 1)) { header("Location: ../your_gang/details.php"); } Link to comment https://forums.phpfreaks.com/topic/162497-solved-unexpected-t_boolean_or/#findComment-857666 Share on other sites More sharing options...
seany123 Posted June 17, 2009 Author Share Posted June 17, 2009 i realised that if(($player->username != $gang['leader']) || ($player->gang_edit != 1)) { header("Location: ../your_gang/details.php"); } is impossible... so now im using just this.. if($player->gang_edit != 1) { header("Location: ../your_gang/details.php"); } ive echo'd my $player->gang_id and its 1 however its still redirecting me??? Link to comment https://forums.phpfreaks.com/topic/162497-solved-unexpected-t_boolean_or/#findComment-857955 Share on other sites More sharing options...
akitchin Posted June 17, 2009 Share Posted June 17, 2009 probably because you're running the comparison against $player->gang_edit, not $player->gang_id. Link to comment https://forums.phpfreaks.com/topic/162497-solved-unexpected-t_boolean_or/#findComment-858063 Share on other sites More sharing options...
seany123 Posted June 17, 2009 Author Share Posted June 17, 2009 no a value in my players table called gang_edit. Link to comment https://forums.phpfreaks.com/topic/162497-solved-unexpected-t_boolean_or/#findComment-858090 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.