From 85084141ed21120a38abd0b7db63d90f6bc6d363 Mon Sep 17 00:00:00 2001 From: Daniel Messer Date: Tue, 18 Oct 2022 12:34:57 -0500 Subject: [PATCH] Hooked up title search. --- basictitlesearch.php | 36 ++++++++++++++++++------------------ index.php | 17 +++++++++-------- itemrecord.php | 20 ++++++++++---------- 3 files changed, 37 insertions(+), 36 deletions(-) diff --git a/basictitlesearch.php b/basictitlesearch.php index 5379278..814c991 100644 --- a/basictitlesearch.php +++ b/basictitlesearch.php @@ -11,7 +11,7 @@ $db = new SQLite3('metadata.sqlite'); $titlequery = $db->query("SELECT books.id AS id, books.title AS title, -SUBSTR(comments.text,10,120) AS excerpt +SUBSTR(comments.text,0,120) AS excerpt FROM books INNER JOIN comments ON comments.book = books.id @@ -87,15 +87,15 @@ ORDER BY books.title ASC"); Close
- Free HTML5 Bootstrap Template + Infopump Avatar
-

About Me

-

Emily Tran Le

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

+

About the Project

+

Infopump

+

A bibliographic management and display system.

@@ -103,18 +103,18 @@ ORDER BY books.title ASC");

Categories

Search

-
+
- +
@@ -128,11 +128,11 @@ ORDER BY books.title ASC");
-
@@ -167,7 +167,7 @@ ORDER BY books.title ASC"); diff --git a/index.php b/index.php index 49c0735..fd880bb 100755 --- a/index.php +++ b/index.php @@ -81,14 +81,14 @@ LIMIT 4'); Close
- Infopump Avatar + Infopump Avatar

About the Project

-

Infopump

+

Infopump

A bibliographic management and display system.

@@ -106,9 +106,9 @@ LIMIT 4');

Search

-
+
- +
@@ -122,12 +122,13 @@ LIMIT 4');
diff --git a/itemrecord.php b/itemrecord.php index 83d3c0a..bb91e1f 100644 --- a/itemrecord.php +++ b/itemrecord.php @@ -3,7 +3,7 @@ // Get and use an item record ID (ItemRecordID) to use for a data pull $ItemID = htmlspecialchars($_GET["itemid"]); -// -------------------- END DATABASE QUERIES -------------------- +// -------------------- BEGIN DATABASE QUERIES -------------------- // Establish atabase connection $db = new SQLite3('metadata.sqlite'); @@ -148,17 +148,17 @@ while ($row = $type->fetchArray()) {
- Close + Close
- Infopump Avatar + Infopump Avatar

About the Project

-

Infopump

+

Infopump

A bibliographic management and display system.

    -
  • -
@@ -176,9 +176,9 @@ while ($row = $type->fetchArray()) {

Search

-
+
- +
@@ -193,9 +193,9 @@ while ($row = $type->fetchArray()) {
Item Record '.$ItemID.'';?>