Advertisement
cdsatrian

kas keluar hapus

Apr 9th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <?php
  2. include "conn.php";
  3. if(isset($_GET['id'])){
  4.   mysql_select_db($db,$koneksi);
  5.   $query_delete="DELETE FROM akuntansi_db.kas_keluar WHERE kas_keluar.id='{$_GET['id']}'";
  6.   $hasil_delete=mysql_query ($query_delete);
  7.   if ($hasil_delete)
  8.   {
  9.     echo"<script>alert('Data Berhasil Dihapus');location.href='index.php?halaman=kas_keluar';</script>";
  10.   }else
  11.   {
  12.     echo "<script>alert('Data Tidak Berhasil Dihapus');</script>";
  13.   }
  14. }else{
  15.   echo "<script>alert('Data Tidak Berhasil Dihapus, id yg akan dihapus tidak terkirim');</script>"
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement