Update session_dao.php

This commit is contained in:
OscarRui 2021-04-11 19:11:16 +02:00 committed by GitHub
parent da43c0a16a
commit 42d084ec5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;