Jump to content

[SOLVED] If with an or statement not working.


iarp

Recommended Posts

<?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.

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.