mirror of
https://github.com/dyzulk/raisen-app.git
synced 2026-01-26 13:22:00 +07:00
first commit
This commit is contained in:
29
act/hapus-pelanggan.php
Normal file
29
act/hapus-pelanggan.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
if( !isset($_SESSION["login"]) ) {
|
||||
header("Location: login.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
require '../functions.php';
|
||||
|
||||
$id = $_GET["id"];
|
||||
|
||||
if( hapusPelanggan($id) > 0 ) {
|
||||
echo "
|
||||
<script>
|
||||
alert('data berhasil dihapus!');
|
||||
document.location.href = '../admin/index.php?p=Data+Pelanggan';
|
||||
</script>
|
||||
";
|
||||
} else {
|
||||
echo "
|
||||
<script>
|
||||
alert('data gagal ditambahkan!');
|
||||
document.location.href = '../admin/index.php?p=Data+Pelanggan';
|
||||
</script>
|
||||
";
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user