Jump to content

[SOLVED] PHP Variable for CSS Value...


sam06

Recommended Posts

Hi there,

I'm trying to obtain $cohyp from config.php, and use that so all the hyperlinks are that colour.

I assumed it would be:

<?php
include('config.php');
?>
<head>
<style type="text/css">
a {
text-decoration: none;
color: <?php $cohyp ?>;
}
</style>

But it's not working- could someone help me?

Thanks,

Sam

Link to comment
https://forums.phpfreaks.com/topic/106210-solved-php-variable-for-css-value/
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.