Commit 9fbd78c6 by Suryaningsih Sinaga

mengedit

parent d5c5d18d
...@@ -28,8 +28,8 @@ function registerUser() { ...@@ -28,8 +28,8 @@ function registerUser() {
$salt = salt(32); $salt = salt(32);
$newPassword = makePassword($password, $salt); $newPassword = makePassword($password, $salt);
if($newPassword) { if($newPassword) {
$sql = "INSERT INTO user (namalengkap, alamat, email, username, password) VALUES ('$fname', '$lname', '$username', '$newPassword', '$salt' , 1)"; $connect = mysqli_query($conn, "INSERT INTO user (namalengkap, alamat, email, username, password) VALUES ('$fname', '$lname', '$username', '$newPassword', '$salt' , 1)");
$query = $connect->query($sql); $query = $connect->query($connect);
if($query === TRUE) { if($query === TRUE) {
return true; return true;
} else { } else {
......
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