Jump to content

[SOLVED] Need help setting else in statement


hoodlumpr

Recommended Posts

I am using the following line of code for my navigation to set the active state for the active page.

 

<li><a href="marketing.php"<?php if ($thisCase=="Marketing") echo " class=\"active\""; ?>>Stratigic Marketing</a></li>

 

It works fine but I need to set it to have a different class if $thisCase doesnt have the value of Marketing....if tried a few things to no avail....can anyone help?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.