Üye Giriş yaptıktan sonra user_details.php sayfasına yönlensin istiyorum. Ama Başaramadım. Yardımcı olurmusunuz?.

Aldığım hata kodu: Warning: Cannot modify header information - headers already sent by (output started at /home/pgsvacom/public_html/user_profile/login.php:1) in /home/pgsvacom/public_html/user_profile/login.php on line 20


<?php 
include("database.php");


$username = $_POST["username"];
$password = $_POST["password"];
$password=md5($password);  

 
if(($username=="")or($password=="")){ 
echo "Lutfen Bos Alan Birakmayniz"; 
}else{  
$uyesor=mysql_query("select name,password from players where name='$username' and password='$password'"); 
if(@mysql_num_rows($uyesor)>0){ 
	header("Location: user_profile/user_details.php");
}else{ 
echo "Başarısız Deneme"; 
} 
} 

?>