first commit

This commit is contained in:
dyzulk
2024-01-04 10:20:56 +07:00
commit 09ffead4e4
3384 changed files with 977637 additions and 0 deletions

29
act/hapus.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
session_start();
if( !isset($_SESSION["login"]) ) {
header("Location: login.php");
exit;
}
require 'functions.php';
$id = $_GET["id"];
if( hapus($id) > 0 ) {
echo "
<script>
alert('data berhasil dihapus!');
document.location.href = 'index.php';
</script>
";
} else {
echo "
<script>
alert('data gagal ditambahkan!');
document.location.href = 'index.php';
</script>
";
}
?>