title: How do i run PHP inside CSS
body: <p>i have a stylesheet link like so</p>
  
  <pre><code>&lt;link href="css/&lt;? echo $theme;?&gt;/styles.css" rel="stylesheet" type="text/css" /&gt;
  </code></pre>
  
  <p>Inside the CSS I want to be able to echo a background image outputted by the db</p>
  
  <pre><code>body{ background-image:url(../../images/&lt;?php echo $theme.'/'.$background;?&gt;);}
  </code></pre>
  
  <p>I tried adding the following to the beginning of my page but it just output everything in html code</p>
  
  <pre><code>&lt;? header ("Content-type: text/css");?&gt;
  </code></pre>
  
  <p>Im sure there is a bit to this, can anyone advise the best course of action?</p>
  
  <p>Thanks in advance</p>