<?php if ($page == 'about') { ?>?

muyral

New member
Hi all, I am trying to make a very easy php which is asking (when you are in about page make ABOUT bolder if not normal)

But what if I want to say (when you are in ABOUT, COMPANY, WORKERS make ABOUT bolder)

So in this case I put a comma , but it didnt work :( Help me amigos!


This is my code!

<?php if ($page == 'about') { ?>
<a href="about.php"><b>ABOUT</b></a>
<?php } else { ?>
<a href="about.php">ABOUT</a>
<?php } ?>


This is not working ofcourse!

<?php if ($page == 'about,company,workers') { ?>
<a href="about.php"><b>ABOUT</b></a>
<?php } else { ?>
<a href="about.php">ABOUT</a>
<?php } ?>
 
Back
Top