title: Using a variable value in <meta http-equiv="refresh" content=" url="/>?
body: <p>Alright, in my PHP file I need the program to make a redirect from the middle of a big if-loop.
  I can successfully use the command to redirect to another page when I manually set the seconds, like:</p>
  
  <pre><code>echo '&lt;meta http-equiv="refresh" content="2; url='www.google.com'"/&gt;';
  </code></pre>
  
  <p>However, in the background I run a SQL-query, from where I get the refresh "rate". That value I have passed into a variable, and I want to use the variable value like this:</p>
  
  <pre><code>echo '&lt;meta http-equiv="refresh" content="'.$refreshvalue.'; url='www.google.com'"/&gt;';
  </code></pre>
  
  <p>I don't know where is the problem. In my program, everything works out as intended when I set the value manually, but when I try to get the value from the variable, the program simply does not execute the redirect.</p>
  
  <p>The query gives me the correct value, and I can pass it to variable. But there's something wrong in the syntax, I assume. I've tried couple of other ways.</p>
  
  <p>Also, if you have a simple alternative to using 'meta' or php function header(), I'm more than interested to hear about it.</p>
  
  <p>Is my syntax wrong, or what's up here?</p>