View difference between Paste ID: 0w5CnGLc and ZQ6kskNK
SHOW: | | - or go back to the newest paste.
1
<?php
2
3
include '../koneksi.php';
4
5-
$nama_kerusakan	= $_POST['nama_kerusakan'];
5+
$kode_kerusakan		= $_POST['kode_kerusakan'];
6-
$nama_gejala		= $_POST['nama_gejala'];
6+
$kode_gejala		= $_POST['kode_gejala'];
7-
$cf			= $_POST['cf'];
7+
$cf					= $_POST['cf'];
8
9
10-
$input			= mysqli_query($connect, "INSERT INTO tb_relasi (nama_kerusakan, nama_gejala, cf) 
10+
$input			= mysqli_query($connect, "INSERT INTO tb_relasi (kode_kerusakan, kode_gejala, cf) 
11-
VALUES ('$nama_kerusakan', '$nama_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
?>