[code=PHP][/code]
ession_start() [function.session-start]: Cannot send session cache limiter - headers already sent 出现了这样的一个情况 请问这个是什么情况
include("conn.php");
$username = trim($_POST['username']);
$paw = md5(trim($_POST['paw']));
$post=$_POST['check'];
$errmsg = '';
if (!empty($username)) {
if (empty($username)) {
$errmsg = '数据输入不完整';
}
if(empty($errmsg)) {
if (mysqli_connect_errno()) {
$errmsg = "数据库连接失败!\n";
}
else {
$sql = "SELECT * FROM user WHERE username='$username' AND pwd='$paw'";
$result = mysql_query($sql);
if ($result && mysql_num_rows($result) > 0 && $post==$_SESSION[check_pic]) {
echo "";
}else {
echo "";
}
mysql_free_result($result);
mysql_close($db);
}
}
}
?>
这个是程序的代码
------解决方案--------------------