Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include '../koneksi.php';
- $kode_kerusakan = $_POST['kode_kerusakan'];
- $kode_gejala = $_POST['kode_gejala'];
- $cf = $_POST['cf'];
- $input = mysqli_query($connect, "INSERT INTO tb_relasi (kode_kerusakan, kode_gejala, cf)
- VALUES ('$kode_kerusakan', '$kode_gejala', '$cf')");
- if($input){
- echo "<script>alert('Data Berhasil Ditambah');document.location.href='relasi.php'</script>";
- }else{
- echo "<script>alert('Data Gagal Ditambah');document.location.href='add_relasi.php'</script>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement