From ebaf321b273e609fd0dd0a5f49301197028c97cf Mon Sep 17 00:00:00 2001 From: Daniel Messer Date: Mon, 7 Aug 2023 06:49:58 -0500 Subject: [PATCH] Types in Recent Additions on menu. --- index.php | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/index.php b/index.php index 2a966cd..30b3dea 100644 --- a/index.php +++ b/index.php @@ -5,7 +5,7 @@ include_once "settings.php"; // Set up Calibre database connection $db = new SQLite3('metadata.sqlite'); -$feature = $db->query('SELECT +$feature = $db->query("SELECT books.id AS id, books.title AS title, authors.name AS author @@ -13,7 +13,12 @@ FROM books INNER JOIN books_authors_link ON books.id = books_authors_link.book INNER JOIN authors on authors.id = books_authors_link.author ORDER BY books.id DESC -LIMIT 4'); +LIMIT 4"); + +$types = $db->query("SELECT +value +FROM custom_column_1 +ORDER BY value ASC"); ?> @@ -116,14 +121,20 @@ LIMIT 4');
-

Categories

+

Recent Additions

+

Search