From 42d084ec5ad42bdfa86afa97fa9fc49887140ca5 Mon Sep 17 00:00:00 2001 From: OscarRui <79144467+OscarRui@users.noreply.github.com> Date: Sun, 11 Apr 2021 19:11:16 +0200 Subject: [PATCH] Update session_dao.php --- panel_manager/includes/session_dao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel_manager/includes/session_dao.php b/panel_manager/includes/session_dao.php index cb8bb7c..17af748 100644 --- a/panel_manager/includes/session_dao.php +++ b/panel_manager/includes/session_dao.php @@ -25,7 +25,7 @@ //Returns a query to get the session's data. public function sessionData($id){ - $sql = sprintf( "SELECT * FROM sessions WHERE id = '%d'", $id ); + $sql = sprintf( "SELECT * FROM `session` WHERE id = '%d'", $id ); $resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database'); return $resul;