title: headers already sent by php ERROR :|
body: <p>i have a problem of below code on php :(</p>
  
  <pre><code>&lt;?php echo $_GET["u"]; 
  $servername = "localhost";
  $username = "******";
  $password = "*****?";
  $dbname = "*****";
  
  // Create connection
  $conn = new mysqli($servername, $username, $password, $dbname);
  // Check connection
  if ($conn-&gt;connect_error) {
      die("Connection failed: " . $conn-&gt;connect_error);
  } 
  $tt=$_GET["u"];
  $sql = "SELECT url from code WHERE BINARY short="."'$tt'";
  $result=$conn-&gt;query($sql);
  $data=$result-&gt;fetch_assoc();
  $url="Location: ".$data["url"];
  header($url); /* Redirect browser */
  exit();
  ?&gt;
  </code></pre>
  
  <p>my problem on this line :(</p>
  
  <pre><code> header($url); /* Redirect browser */
  </code></pre>
  
  <p>$url variable is a link a get from database.!</p>