Skip to content
Snippets Groups Projects
Commit d6cf637b authored by ERKEN EFE's avatar ERKEN EFE
Browse files

:bug: BUGFIX: Fix database path

Corrected database file name to connect to the right database.
parent fd899ced
Branches
Tags
No related merge requests found
......@@ -6,7 +6,7 @@ abstract class Database
public function __construct()
{
$this->pdo = new PDO("sqlite:" . $_SERVER["DOCUMENT_ROOT"] . "/assets/db/database.db");
$this->pdo = new PDO("sqlite:" . $_SERVER["DOCUMENT_ROOT"] . "/assets/db/database.sqlite");
$this->pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
......
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