Re: Include Problems

From: Date: Thu, 24 Jul 2003 20:41:25 +0000
Subject: Re: Include Problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156738@lists.php.net to get a copy of this message
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" <cparker@swatgear.com> wrote in message news:001BD19C96E6E64E8750D72C2EA0ECEE2B7DED@ati-ex-01.ati.local... 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 (#156738) next »