iarp Posted December 18, 2008 Share Posted December 18, 2008 <?php if (($_REQUEST['title'] != 'Main_Page') || ($_REQUEST['title'] != 'disclaimer')) { ?> blah blah text <?php } ?> So using the above i figured it wouldn't show 'blah blah text' if i was on Main_Page or disclaimer, but it does. If i remove one of the != statements it works as it should. It's probably something stupid i'm missing here. Quote Link to comment https://forums.phpfreaks.com/topic/137487-solved-if-with-an-or-statement-not-working/ Share on other sites More sharing options...
mmarif4u Posted December 18, 2008 Share Posted December 18, 2008 <?php if (($_REQUEST['title'] != 'Main_Page') && ($_REQUEST['title'] != 'disclaimer')) { ?> blah blah text <?php } ?> try this. Quote Link to comment https://forums.phpfreaks.com/topic/137487-solved-if-with-an-or-statement-not-working/#findComment-718516 Share on other sites More sharing options...
iarp Posted December 18, 2008 Author Share Posted December 18, 2008 Makes sence, long slow night here. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/137487-solved-if-with-an-or-statement-not-working/#findComment-718521 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.