edit

parent f5110431
<?php
$host="127.0.0.1";
$user="root";
$pass="";
$name="p1d3ti08_proyek";
$koneksi=mysql_connect($host,$user,$pass)or die("Koneksi ke database gagal!");
mysql_select_db($name,$koneksi)or die("Tidak ada database yang dipilih!");
$id = $_POST['id'];
$nama_pengunjung = $_POST['namapengunjung'];
......@@ -13,7 +6,7 @@ mysql_select_db($name,$koneksi)or die("Tidak ada database yang dipilih!");
$isi_keluhan = $_POST['isikeluhan'];
mysql_query("insert into keluhan values('$id', '$nama_pengunjung' ,'$email_pengunjung', '$isi_keluhan')");
mysqli_query($conn, "insert into keluhan values('$id', '$nama_pengunjung' ,'$email_pengunjung', '$isi_keluhan')");
header('Location: aboutus.php');
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment