PHP header function not triggering?
<p>I'm getting some fairly odd behavior here... I noticed that only localhost, a header statement I have worked just fine, but when copied over (SAME EXACT CODE) to my live site, the header statement no longer triggers.</p>

<p>I added some echos to help debug. This if statement will only trigger if the URL variable <code>id</code> is NOT set. So with this same exact code on localhost, I never see these debug statements. On the live site, I do... which I shouldn't. I should get redirected instead. Anyone know why a header statement would be ignored?</p>

<pre><code>if((!isset($_GET['id'])) &amp;&amp; $rows != 0) {
      $result = mysql_query('SELECT videoinfo FROM videos where game_id=' . $gameid . ' LIMIT 1');
      $row = mysql_fetch_array($result);
      $tubeID = $row['videoinfo'];
      echo '&lt;script type="text/javascript"&gt;';
        echo 'window.location = "videos.php?id=' . $tubeID . '&amp;awayid=' . $awayid . '&amp;homeid=' . $homeid . '&amp;date=' . $date . '&amp;time=' . $time . '&amp;gameid=' . $gameid . '&amp;play=0"';
      echo '&lt;/script&gt;';
}
</code></pre>

<p><strong>EDIT</strong> 4 people have told me already that I can't have any echo calls before my header function. This code WORKS on localhost and the header function DOES trigger. Regardless, REMOVING the echo statements DOES NOT fix it.</p>
