close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Data Assist Search showing results not in the recordset

Thread began 12/15/2010 4:24 pm by lightwalkercreations361768 | Last modified 12/17/2010 2:18 pm by lightwalkercreations361768 | 2206 views | 6 replies

lightwalkercreations361768Beta Tester

Dear Jason,

Thank you so much for your reply, that was really helpful. I see what is happening. the query generated is this:

SELECT RecipeID, Title, Serves, Intro, WhatYouNeed, HereHow, CountAs, CatagoryID FROM Recipies WHERE FoodPlan = 1 AND ((Title LIKE '%milk%')) OR ((WhatYouNeed LIKE '%milk%')) LIMIT 0, 10

what is happening is because of the OR it is not honoring the WHERE FoodPlan = 1 statement which means that it is returning results that are not FoodPlan = 1. I do need the OR as I want the search to look for the keyword in the "Title" as well as "WhatYouNeed" columns. But if I can change it to this:

SELECT RecipeID, Title, Serves, Intro, WhatYouNeed, HereHow, CountAs, CatagoryID FROM Recipies WHERE ((Title LIKE '%milk%')) OR ((WhatYouNeed LIKE '%milk%')) AND FoodPlan = 1 LIMIT 0, 10

were the AND FoodPlan =1 is at the end then the results will be correct. How can I do this?

I am sorry I am not able to upload this for you to see as everything is still being tested locally.

Many thanks again for your help

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...