Jump to content

Simple Problem


FirePhoenix

Recommended Posts

I am trying to keep all the addresses to all the pages on the site in a config.php that i made however its not working can someone tell me what i am doing wrong

 

The code with the link

<A HREF="<? echo $page_admin_direct_main; ?>">Direct TV</A>

 

The variable in config.php

$page_admin_direct_main = "http://www.myserver.com/admin/dtvmain.php";

Link to comment
https://forums.phpfreaks.com/topic/39778-simple-problem/
Share on other sites

FirePhoenix,

 

When I tried your code, I could not get it to work either, until I changed the short-php tag ( <? ) to the long-php tag ( <?php ).

 

After that, it worked as advertised.

 

Scot L. Diddle, Richmond VA

 

 

Link to comment
https://forums.phpfreaks.com/topic/39778-simple-problem/#findComment-192064
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.