diff --git a/basictitlesearch.php b/basictitlesearch.php new file mode 100644 index 0000000..5379278 --- /dev/null +++ b/basictitlesearch.php @@ -0,0 +1,186 @@ +query("SELECT +books.id AS id, +books.title AS title, +SUBSTR(comments.text,10,120) AS excerpt +FROM books +INNER JOIN +comments ON comments.book = books.id +WHERE books.title LIKE '%$titlesearch%' +ORDER BY books.title ASC"); + +?> + + + + + + + + + + + Infopump - Basic title search + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Close +
+
+ Free HTML5 Bootstrap Template +
+

About Me

+

Emily Tran Le

+

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

+ +
+ +
+
+

Categories

+ +
+
+

Search

+
+
+ +
+
+
+
+
+ + +
+ +
+ +
+ +
    +
  • +
  • +
  • +
+ + +
+ +
+ +
+ +
+
+
+
+
+
+ fetchArray()) { + $row_id = $row['id']; + $row_title = $row['title']; + $row_excerpt = $row['excerpt']; + + echo '

'.$row_title.' : '.strip_tags($row_excerpt).'...

'; + } + ?> +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + diff --git a/images/search-results.jpg b/images/search-results.jpg new file mode 100644 index 0000000..1abb2fe Binary files /dev/null and b/images/search-results.jpg differ