title: simple header location not redirecting
body: <p>The below is a simple script in order to remove information from a table which works fine, however this does not redirect to where I need it to go. Any ideas? I have also tried using <code>die();</code> etc afterwards. </p>
  
  <pre><code>&lt;?php
  $dbservername = "xxxxx";
  $dbusername = "xxxxx";
  $dbpassword = "xxxxx";
  $conn = mysql_connect($dbservername, $dbusername, $dbpassword);
  $db  = mysql_select_db("sxxxxx", $conn);
  if (!$conn) { die('Could not connect: ' . mysql_error()); }
  ?&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;?php
  session_start();
  include"connect_db.php"; (this include, includes the above connection to db)
  
  $content_id=$_GET['content_id'];
  $username=$_SESSION['username'];
  
  
  
  $sql = "DELETE FROM `user_blogs` WHERE `id`='".$content_id."' AND `username`='".$username."'";
  
  $res = mysql_query($sql) or die(mysql_error());         
  
  header("location: user_page.php");
  
  ?&gt;
  </code></pre>