Jay Blanchard <mailto:[EMAIL PROTECTED]>
    on Thursday, July 24, 2003 1:12 PM said:

> I just cleaned it up some, used non deprecated formatting tags and sis
> it all in one shot.

Yeah but Jay, you didn't allow for an else. Your code should have an
else in there so that even if he's not at home it'll still print the
link, just not bold. ;)

Also, a ternary operator would be best for this.

echo ($subnav == "home") ? "<strong><a...>Home</a></strong>" :
"<a...>Home</a>";


Chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to