Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "conn.php";
- if(isset($_GET['id'])){
- mysql_select_db($db,$koneksi);
- $query_delete="DELETE FROM akuntansi_db.kas_keluar WHERE kas_keluar.id='{$_GET['id']}'";
- $hasil_delete=mysql_query ($query_delete);
- if ($hasil_delete)
- {
- echo"<script>alert('Data Berhasil Dihapus');location.href='index.php?halaman=kas_keluar';</script>";
- }else
- {
- echo "<script>alert('Data Tidak Berhasil Dihapus');</script>";
- }
- }else{
- echo "<script>alert('Data Tidak Berhasil Dihapus, id yg akan dihapus tidak terkirim');</script>"
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement