Look at the one for yt and one for Alaska. If there is a difference in the code in 1 place that is probably why it IS working on the yt page. That's where I would start. Then I would put in an alias in my web configuration to point css /home/web/css or whatever so that you can go :

echo '<link href="'/css/' . $continentcode . '/' . $myregion . '.css'" rel="stylesheet" type="text/css" />';

The thing you do need to check is your $continentcode especially, as that is the one that links between pages and the style sheet (unless I missed where it was assigned based on something else). Also check to make sure you have ' appropriately. I find an odd number of ' in your example and if you are not careful then you have cut off a piece of the echoed code.

That will cut down some on code as well as help with the figuring out of where the issue is. I personally use print " <link href=\"/css/continentcode/$myregion.css\" rel=\"stylesheet\" type=\"text/css\">" for things like that, no having to join the information together, the server does the work for me.

Robert

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to