Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 220
Gagal: Mohon mengisi semua input.";
} else {
$update_news = mysqli_query($db, "UPDATE news SET content = '$post_content' WHERE id = '$post_id'");
if ($update_news == TRUE) {
$msg_type = "success";
$msg_content = "Berhasil: Informasi berhasil diubah.";
} else {
$msg_type = "error";
$msg_content = "Gagal: Error system.";
}
}
}
$checkdb_news = mysqli_query($db, "SELECT * FROM news WHERE id = '$post_id'");
$datadb_news = mysqli_fetch_assoc($checkdb_news);
include("../../lib/headeradmin.php");
?>