I have little problem with connection style.php to db
<?php
$servername = "localhost";
$username = "root";
$password = "";
$conn = new mysqli($servername, $username, $password);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
header("Content-type: text/css; charset: UTF-8");
$Color = "#000000";
$Test = "#555000";
?>
#header {
background-color: <?php echo $Test; ?>;
width: 500px;
height: 500px;
}
a{
color: <?php echo $Color; ?>;
}
this code is working perfectly. and when i do something like this:
<?php
header("Content-type: text/css; charset: UTF-8");
$Color = "#000000";
$Test = "#555000";
?>
#header {
background-color: <?php echo $Test; ?>;
width: 500px;
height: 500px;
}
a{
color: <?php echo $Color; ?>;
}
here #header{} this won't work but a{} will work. can i somehow make it work?
foo#header, instead of just#header.