<?php include "functionweb.php"; $a = new functionWEB(); $a->register(); if (!$a) { echo "<script>alert('REGISTER GAGAL');\r\n\t\t\t</script>"; echo "<script>window.location='index.php';\r\n\t\t\t</script>"; exit; } else { echo "<script>alert('REGISTER BERHASIL!');\r\n\t\t\t</script>"; echo "<script>window.location='index.php';\r\n\t\t\t</script>"; exit; }
<?php include "conn.php"; include "functionweb.php"; $f = new functionWEB(); $f->delete();
<?php include "conn.php"; include "functionweb.php"; $a = new functionWEB(); $a->edit(); if ($a) { header('location:lihat.php'); } else { echo "Daftar Gagal Diupdate<br>\r\n<a href=lihat.php>Laporan Transaksi</a>"; }