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 {
$insert_news = mysqli_query($db, "INSERT INTO news (date, section, content, created_by) VALUES ('$date','$post_section', '$post_content', '$sess_username')");
if ($insert_news == TRUE) {
$msg_type = "success";
$msg_content = "Berhasil: Informasi berhasil ditambahkan. Type: $post_section Konten: $post_content Tanggal: $date";
} else {
$msg_type = "error";
$msg_content = "Gagal: Error system.";
}
}
}
include("../../lib/headeradmin.php");
?>