<?php
error_reporting(0);
include("../../php/open.php");// db-connection
print_r($_REQUEST);
if(isset($_REQUEST['form1']))
{
if(!empty($_POST['description'])){
$id=$_REQUEST['id'];
$field_name = $_REQUEST['field_name'];
$paragraph1=$_REQUEST['description'];
$text = $paragraph1;
$query ="UPDATE website_data SET field_value = '$text', field_name= '$field_name' WHERE id = '$id';";
$result=mysql_query($query);
if($result==true){
$url="index.php?page=content_edit";
die('<script type="text/javascript">window.location.href="' . $url . '";</script>');
}
}
else{
echo "<script>alert('page body can not be empty')</script>";
}
}
?>
,並顯示輸出....爲什麼這個代碼不重定向頁面
也許一個想法是設置**錯誤報告** 1,使其顯示糾正錯誤。 –
404是一個未發現的問題,因爲在你的文件沒有找到...路徑看起來好嗎?那裏的文件? etc – Dale
我認爲路徑是正確的,文件是正確的地方。我檢查了更多次。當我更新內容時,它的更新成功,但不重定向頁面,並顯示此消息 – atiq05