Initial commit
This commit is contained in:
24
admin/pend/del_pend.php
Normal file
24
admin/pend/del_pend.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
if(isset($_GET['kode'])){
|
||||
$sql_hapus = "DELETE FROM tb_pdd WHERE id_pend='".$_GET['kode']."'";
|
||||
$query_hapus = mysqli_query($koneksi, $sql_hapus);
|
||||
|
||||
if ($query_hapus) {
|
||||
echo "<script>
|
||||
Swal.fire({title: 'Hapus Data Berhasil',text: '',icon: 'success',confirmButtonText: 'OK'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
window.location = 'index.php?page=data-pend';
|
||||
}
|
||||
})</script>";
|
||||
}else{
|
||||
echo "<script>
|
||||
Swal.fire({title: 'Hapus Data Gagal',text: '',icon: 'error',confirmButtonText: 'OK'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
window.location = 'index.php?page=data-pend';
|
||||
}
|
||||
})</script>";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user