This seems reletively simple compared to what I have done so far but it doesn't appear to work!
I want to define the border-bottom
as a colour that is specified in the database. Lets say for example I want the border colour to be RED.
My row in the db is border_colour and my recordset is recorded as $row_club
.
My page layout is as follows:
<?php
require_once('../Connections/cl25theuclone.php');
$club_id = $_GET['club_id'];
mysql_select_db($database, $db_table);
$query_club = "SELECT * FROM clubs WHERE club_id=$club_id";
$club = mysql_query($query_club, $cl25theuclone) or die(mysql_error());
$row_club = mysql_fetch_assoc($club);
$totalRows_club = mysql_num_rows($club);
?>
<!DOCTYPE html>
<head>
<title></title>
<style type="text/css">
#header{
border-bottom: 15px solid; /* This bit works as per normal */
border-bottom-color: <?php echo $row_club['border_colour']?>;
}
</style>
</head>
<body>
<div id="header">
</div>
</body>
</html>
What is happening is its displaying the border-bottom as 15px and solid but it's just coming out the default black and not the specified value in the mySQL db.
I have so far pulled out all other info from the db using this method without any issues, aswell as creating the dynamic URL.
Any help is greatly appreciated. I want to keep it as simple as possible really