close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Search page has 4 input text fields but search results don't work correctly unless you use only one text field

Thread began 6/10/2014 8:32 am by JBWebWorks | Last modified 6/11/2014 7:58 am by Jason Byrnes | 1839 views | 8 replies |

JBWebWorks

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

Attached Files
searchissues.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

JBWebWorks

thanks Jason; please see private message

Sign in to reply to this post

JBWebWorks

Each search field and the sql uses OR
Should that be changed to AND?

Sign in to reply to this post

Jason ByrnesWebAssist

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

Sign in to reply to this post

JBWebWorks

Should I change the OR to AND in both the DataAssist Search and the recordset or just in the Search code?

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

JBWebWorks

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!

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear it is working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...