I know how to do this to control current navigation display:

<?php $thisPage="one"; ?>

How would I modify it if I wanted there to be two pages, that is, if $thisPage should meet two conditions - 'if this page = one or this page = two'? Something like this but I know the syntax is wrong:

<?php $thisPage="one,two"; ?>

Recommended Answers

All 2 Replies

Am I right that you're trying to figure out how to use 'or'? If so it's just

if (($thisPage == "one")||($thisPage == "two")){
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.