I am working on a PHP news script, everything is working good so far, but I am creating it to be very user friendly, so I am making it so the webmaster can set the look of the news section by changing variables in a settings file.
I have it loading all the variables from the setting file fine, but I want to have a stylesheet for the links, so I am trying to load the link colour variables into the stylesheet, but it doesn't seem to work.
here is my code. settings.txt contains the variables $archlinkh and $archlinkr and their values (in the <?php ?> tags). all the other variables loaded from settings.txt work and the rest of the stylesheet works.
<?php
require("settings.txt");
?>
<style type=text/css>
<!--
a.link.archive {text-decoration: none; color: <?php print("$archlinkr") ?>}
a.menu:hover {text-decoration: none; color: <?php print("$archlinkh") ?>}
a.active.archive {text-decoration: none; color: <?php print("$archlinkr") ?>}
a.visited.archive {text-decoration: none; color: <?php print("$archlinkr") ?>}
-->
</style>