Leslie Posted April 20, 2005 Share Posted April 20, 2005 I've created a search box to search the inventory of product. The results page shows the select statement is like this: SELECT tbID, tbName, tbItemNo, tbThumb, tbCostR FROM tbProduct WHERE tbSearch like '%s%%' AND tbCostR != 'NULL' ORDER BY tbID DESC s% = the search string the visitor entered in the search box tbSearch has a list of words describing a product The search only finds the first word within the list of words in the tbSearch field of my databank. How can I get the search to go through the whole list within the tbSearch field and pull out all revelent product. For example.....one tbSearch field has: eagle, bird The eagle comes up on the results page if you type eagle in the search box. If you type bird into the search box, nothing appears on the results page. Help! Quote Link to comment https://forums.phpfreaks.com/topic/2266-sql-search-only-looks-art-the-first-word/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.