Advertisement
dhiforester

ProsesHapusPengaturanVclaim.php

Dec 18th, 2023
1,014
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | Source Code | 0 0
  1. <?php
  2.     //Connection
  3.     include "../../_Config/Connection.php";
  4.     if(empty($_POST['id_pengaturan'])){
  5.         echo '<span class="text-danger">ID Pengaturan tidak dapat ditangkap oleh sistem</span>';
  6.     }else{
  7.         $id_pengaturan=$_POST['id_pengaturan'];
  8.         //Proses hapus data
  9.         $HapusPengaturan = mysqli_query($Conn, "DELETE FROM pengaturan WHERE id_pengaturan='$id_pengaturan'") or die(mysqli_error($Conn));
  10.         if ($HapusPengaturan) {
  11.             echo '<span class="text-success" id="NotifikasiHapusPengaturanVclaimBerhasil">Success</span>';
  12.         }else{
  13.             echo '<span class="text-danger">Hapus Data Gagal</span>';
  14.         }
  15.     }
  16. ?>
Tags: simrs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement