SHARE
TWEET

proses.php

a guest Jun 15th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. include '../koneksi.php';
  4.  
  5. $kode_kerusakan     = $_POST['kode_kerusakan'];
  6. $kode_gejala        = $_POST['kode_gejala'];
  7. $cf                 = $_POST['cf'];
  8.  
  9.  
  10. $input          = mysqli_query($connect, "INSERT INTO tb_relasi (kode_kerusakan, kode_gejala, cf)
  11. VALUES ('$kode_kerusakan', '$kode_gejala', '$cf')");
  12.  
  13. if($input){
  14.     echo "<script>alert('Data Berhasil Ditambah');document.location.href='relasi.php'</script>";
  15.        
  16. }else{
  17.     echo "<script>alert('Data Gagal Ditambah');document.location.href='add_relasi.php'</script>";
  18.        
  19. }
  20.  
  21. ?>
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