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. 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. 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 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
Archived
This topic is now archived and is closed to further replies.