diff --git a/about.php b/about.php index 284d080..4c7c0ea 100644 --- a/about.php +++ b/about.php @@ -1,14 +1,30 @@ query("SELECT -value -FROM custom_column_1 -ORDER BY value ASC"); +// Initialize variables +$types = null; + +try { + // Set up Calibre database connection + $db = new SQLite3('metadata.sqlite', SQLITE3_OPEN_READONLY); + $db->enableExceptions(true); + + // Fetch types for menu - using prepared statement for consistency + $stmt = $db->prepare("SELECT value FROM custom_column_1 ORDER BY value ASC"); + $types = $stmt->execute(); + +} catch (Exception $e) { + error_log("Database error in about.php: " . $e->getMessage()); + // Continue without types menu if database fails +} ?> @@ -21,9 +37,9 @@ ORDER BY value ASC");
A free, open source project from:
- The L0WL1F3 Podcast
- Neon Dystopia
- Cyberpunk Librarian
+ The L0WL1F3 Podcast
+ Neon Dystopia
+ Cyberpunk Librarian