close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Duplicate Search Results

Thread began 12/08/2010 2:34 pm by av3103798 | Last modified 12/09/2010 10:56 am by Jason Byrnes | 1386 views | 5 replies |

av3103798

Duplicate Search Results

I followed the tutorial to create a search/results page with Data Assist. It works well, except the results page shows duplicate entries. The recordset on the results page is created with a SELECT DISTINCT mysql statement, but still I get multiple results that are the same.

I have no idea how to fix this. Help would be sincerely appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

What is the full recordset you are using?

what column has the duplicates you are trying to eliminate?

Sign in to reply to this post

av3103798

Hi Jason, thanks for your reply.

Hi Jason, thanks for your speedy reply.

The search page is at:

search.php

The results page is at:
results.php

and the code for each of the pages are attached.

In the search page online, if you choose only the "client safety" parameter, you'll see that there are several identical hits.

If this is more conducive to a paid ticket, I'm happy to do so as trying to meet a deadline.

I appreciate your help.
angelo

Attached Files
results.pdf
search.pdf
Sign in to reply to this post

Jason ByrnesWebAssist

when you have a query that returns multiple columns, and you use distinct, the distinct keyword returns a distinct rowset.

instead of using distinct, you need to use a GROUP BY clause

it looks like the title column would be a good candidate.

at the end of the sql add:
GROUP BY tbl_Resource.resource_title

Sign in to reply to this post

av3103798

Heaps of Gratitude

thanks Jason, you and your team always manage to quickly solve my issues. I'm very appreciative of your great products and fantastic customer service.
Angelo

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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