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 smua input .';
} else if (strlen($post_subject) > 200) {
$msg_type = "error";
$msg_content = 'Gagal: subject max 200 .';
} else if (strlen($post_message) > 500) {
$msg_type = "error";
$msg_content = 'Gagal: Pesan max 500 .';
} else {
$insert_ticket = mysqli_query($db, "INSERT INTO tickets (user, subject, message, datetime, last_update, status) VALUES ('$sess_username', '$post_subject', '$post_message', '$date $time', '$date $time', 'Pending')");
if ($insert_ticket == TRUE) {
$msg_type = "success";
$msg_content = 'Berhasil: Ticket Berhasil Dibuat .';
} else {
$msg_type = "error";
$msg_content = "Gagal: System error.";
}
}
}
?>