PHP는헤더 정보를 수정할 수 없습니다 PHP의 경고 메시지?
$q = "Update tblarticle set art_title='$title', art_cat='$cat', art_des='$txtart' where art_id='".$_GET['art_id']."'";
$result = $mysqli->query($q) or die(mysqli_error($mysqli));
if($result)
{
//saved succesfullt
$error =0;
header("location:mngArt.php");
exit;
}
else $error =1;
}
?>
....Some HTML........
데이터베이스가 업데이트지고 코드 -하지만 Cannot modify header information
오류 MSG가 팝업됩니다.
. 선택하십시오 : http://stackoverflow.com/search?q=annot+modify+header+information –
그리고 오류 메시지는 정확히 출력 전에 머리글을 보내고 정확히 알려야합니다 –
여러분, 왜 그럴까요? 수십 개의 동일한 사본이있는 질문에 대답하는 데 필요합니까? –