if ($query) { echo "<script>alert('Data Berhasil Disimpan!!')</script>"; echo "<meta http-equiv=\"refresh\" content=\"0;url=./index.php?view=buku_tamu\">"; } else { echo "DATA TIDAK BISA DI SIMPAN"; } }
}
if (!isset ($_POST['tombol_simpan'] ) || $error!="") { if ($error !="") { echo "<div class=\"error\">$error </div>";