请帮我解决这个错误,这个错误已经发送了头无法修改标题信息 - 在处理页面
警告:不能更改头信息 - 头已经发出(输出开始/家庭/ amberadv /的public_html /管理/ login.php中:11)/home/amberadv/public_html/admin/login.php线路17
<?php
session_start();
include_once('connect.php');
if(isset($_REQUEST['login']))
{
$username=$_REQUEST['username'];
$password=$_REQUEST['password'];
$sql="select * from `admin` where `user`='$username' and `pass`='$password'";
$result=mysql_query($sql);
$records= mysql_fetch_array($result);
print_r($records);
//$count=mysql_num_rows($result);
$_SESSION['user']=$username;
if($records['user']==$username && $records['pass']==$password)
{
//echo "in";
header("Location:index.php");
}
else
{
echo "out";
print "Username And Password Incorrect";
}
}
?>