I'm using this IF statement:
<? if ( $_GET['page'] == fun ) { ?> Display this text <? } ?>
Basically, if page = fun OR page = games OR page = downloads, if it equals one of those items I want it to display the same thing.
http://www.php.net/manual/en/language.operators.logical.php
😉
<? if ( $_GET['page'] == "fun" || $_GET['page'] == "games" || $_GET['page'] == "downloads" ) { ?> Display this text <? } ?>
Another way to do it, though with a slight tradeoff in time, is:
<?php if (in_array($_GET['page'], array("fun", "games", "downloads"))) { ?> Display this text <?php } ?>