Commit 9fbd78c6 by Suryaningsih Sinaga

mengedit

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