I'm trying to write some php so that, depending on the page displayed, a certain <div> will load a certain class, giving it a certain background image. I have it down in theory, but there's a problem. My current code is returning multiple results as true, leading to the user receiving source like:
Expand|Select|Wrap|Line Numbers
- <div id="wrap" class="flower-1flower-2">
Here's my php:
Expand|Select|Wrap|Line Numbers
- <div id="wrap" class="
- <?php if ($thisPage=="Home"||"Test") echo "flower-1";
- if ($thisPage=="Bravo") echo "flower-2"; ?>
- ">
Thanks for reading!