Search page has 4 input text fields but search results don't work correctly unless you use only one text field
I attached the search and results page along with HelperPHP page
I attached the search and results page along with HelperPHP page
I'll need to troubleshoot directly, see the private message section.
thanks Jason; please see private message
Each search field and the sql uses OR
Should that be changed to AND?
Yes, you should change the search settings to use AND as the separator.
using or, your search of:
bon in tour field and 2014-06-01 date field
will look for :
DetailItemDesc LIKE '%bon%' OR OrderDate >= 2014-06-01
if you want to return only where both conditions are met, you need to use and so your search will be:
DetailItemDesc LIKE '%bon%' AND OrderDate >= 2014-06-01
Should I change the OR to AND in both the DataAssist Search and the recordset or just in the Search code?
any conditions that are in the recordset just give you a starting result set that the search will filter further.
I cant really answer your question except to ask another question:
Does the recordset as written give the starting result set you want?
If the answer to that question is yes, then you don't need to edit the recordset.
If the answer is no, than you need to edit the recordset to give the starting result set you want.
I had LIKE conditions in the recordset and took them out.
ALso i had one text field searching 2 columns (First and Last names) and couldn't get that to work right so i added another text field to search first name only and the other field searches last name only.
I changed text fields to select menus populated from the DB for the Bike tours and tent Products.
Now everything works perfectly.
Thanks for the assist!
Glad to hear it is working.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.