🐞 fix: Update functions to work, make new game button stay inline

This commit is contained in:
Keith Solomon
2025-08-15 18:51:11 -05:00
parent 17e925ec8e
commit 428d111cf7
5 changed files with 13 additions and 6 deletions

View File

@@ -12,7 +12,13 @@
* @link https://git.keithsolomon.net/keith/Warframe_Shopping_List
*/
$db = new PDO('sqlite:game.db');
$dbFile = 'game.db';
if (!file_exists($dbFile)) {
touch($dbFile);
}
$db = new PDO('sqlite:' . $dbFile);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);