I figured out what was wrong with it, thanks for all your help.  I hate
syntax errors. I needed to echo the variable when trying to display it and
the double "=" helped resolve the other problem.  Thanks everyone.



"Chris W. Parker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
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