RE: [PHP] Include Problems

From: Date: Thu, 24 Jul 2003 20:17:08 +0000
Subject: RE: [PHP] Include Problems
Groups: php.general 
Request: Send a blank email to php-general+get-156735@lists.php.net to get a copy of this message
Jay Blanchard <mailto:jay.blanchard@niicommunications.com> 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.

« previous php.general (#156735) next »