Question
Displaying Search Results selectively
Okay, I am passing the variable 'SearchString' to a
search.php page. The search page has a recordset like this :
SELECT title, author, version
FROM books
WHERE title LIKE '%".$_GET["SearchString"]."%'
OR author LIKE '%".$_GET["SearchString"]."%'
OR date LIKE '%".$_GET["SearchString"]."%'
OR publisher LIKE '%".$_GET["SearchString"]."%'
ORDER BY title
So the recordset is displaying three fields (title, author, version). How do I get the search page to display only those sections of the table which contain the result?
Help appreciated!
SELECT title, author, version
FROM books
WHERE title LIKE '%".$_GET["SearchString"]."%'
OR author LIKE '%".$_GET["SearchString"]."%'
OR date LIKE '%".$_GET["SearchString"]."%'
OR publisher LIKE '%".$_GET["SearchString"]."%'
ORDER BY title
So the recordset is displaying three fields (title, author, version). How do I get the search page to display only those sections of the table which contain the result?
Help appreciated!
