SHARE
TWEET

aksi_hapus.php

choirurrizal Feb 19th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.     require_once('connect.php');
  4.     if (isset($_GET['q_id'])){
  5.         $q_id = $_GET['q_id'];
  6.         $sql = "delete from tabel_try where q_id = '$q_id'";
  7.         $hapus = mysql_query($sql) or die('gagal hapus');
  8.         if ($hapus){
  9.             echo "berhasil hapus";
  10.         }
  11.     }
  12.     header('Location:aksi.php');
  13. ?>
  14. <a href='./'>index</a> <a href='./form.php'>isi</a> <a href='./aksi.php'>aksi</a>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top