So I have some PHP stuff inside my html doc, and I'm fairly new to web stuff so I'm kinda confused. The code in question is:
<style type="text/css">
body{
background: url(<?php include 'background.php';
echo "$selectedBg"; ?>) no-repeat center center fixed;
background: url(images/1.png)
background-size: cover;
}
</style>
The rest of the file works seamlessly, I've tried putting that little bit in all sorts of different tags, and even changing the file to a php file instead of an html one. I've verified that php is installed and my path is correct. background.php exists in the same directory as seen here, this and this are the sites I referenced when creating it. The only other info I can think to provide is that I'm viewing it through the live preview in Brackets.
echo "$selectedBg"did you mean it to be a variable here? that might be your problem.htmlfiles as PHP, you kind of don't have a choice BUT to use a.phpextension.