Jump to content

Please help with constant error


lingo5

Recommended Posts

I can't see what I'm doing wrong here.

When I use this code, the link HOME gets echoes with no problem:

          
<td valign="middle"><?php echo '<a href="index.php"'; 
if(strstr($checkit,"index.php")) echo ' class="clicked"'; 
else echo ' class="menulinks"';
echo '>HOME</a>'; ?></td>

...but when I swap HOME with a php constant, I get nothing...

          
<td valign="middle"><?php echo '<a href="index.php"'; 
if(strstr($checkit,"index.php")) echo ' class="clicked"'; 
else echo ' class="menulinks"';
echo '><?=CNT_TXT_HOME?></a>'; ?></td>

Please help

Link to comment
https://forums.phpfreaks.com/topic/249392-please-help-with-constant-error/
Share on other sites

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.