Update user_dao.php

This commit is contained in:
Fernando Méndez 2021-04-12 16:31:41 +02:00 committed by GitHub
parent 62fe03a7a1
commit e0ff3aed42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,9 @@
VALUES ( '%s', '%s', '%s', '%s', '%s')",
$id, $username, $email, $password, $rol );
return $sql;
$resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database');
return $resul;
}
//Returns a query to check if the user name exists.