From e0ff3aed4263ec4f0809580c0420c4eca9757959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Mon, 12 Apr 2021 16:31:41 +0200 Subject: [PATCH] Update user_dao.php --- login/includes/user_dao.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/login/includes/user_dao.php b/login/includes/user_dao.php index ab2af61..504fa9e 100644 --- a/login/includes/user_dao.php +++ b/login/includes/user_dao.php @@ -38,8 +38,10 @@ $sql = sprintf( "INSERT INTO users( id, username, email, passwd, rol) VALUES ( '%s', '%s', '%s', '%s', '%s')", $id, $username, $email, $password, $rol ); + + $resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database'); - return $sql; + return $resul; } //Returns a query to check if the user name exists. @@ -80,4 +82,4 @@ } -?> \ No newline at end of file +?>