edit

parent 2af7a444
<?php
include_once('fungsi.php');
$host="127.0.0.1";
$user="root";
$pass="";
$name="p1d3ti08_proyek";
$koneksi=mysqli_connect($host,$user,$pass)or die("Koneksi ke database gagal!");
mysqli_select_db ($conn, $name)or die("Tidak ada database yang dipilih!");
$nama_lengkap = $_POST['namalengkap'];
$alamat = $_POST['alamat'];
......@@ -13,7 +7,7 @@ mysqli_select_db ($conn, $name)or die("Tidak ada database yang dipilih!");
$username = $_POST['username'];
$password = $_POST['password'];
mysqli_query($conn, "insert into user (namalengkap, alamat, email, username, password) values('$nama_lengkap', '$alamat', '$email', '$username', '$password')");
$daftar = mysqli_query($conn, "insert into user (namalengkap, alamat, email, username, password) values('$nama_lengkap', '$alamat', '$email', '$username', '$password')");
header('Location: login.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