Question...
<li <?php if ($page == 'lotteries' || $page == '*_lottery') { echo 'class="active"'; } ?>>
<a href="index.php?page=lotteries"><?php echo $lotto_button; ?></a>
</li>
I know the above will never work but it helps me get my question asked, how can I have it so the * is wildcard for any possible combination ?
ex. hi_lottery, how_lottery, are_lottery, you_lottery
Basically as I add pages that are *_lottery, the class should always be active.
Ty.
This is for the site in my sig.