close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Search "short cut" buttons for common searches on the results page?

Thread began 4/18/2019 8:49 am by Justin@AdventDesign | Last modified 4/18/2019 9:43 am by Ray Borduin | 315 views | 4 replies |

Justin@AdventDesign

Search "short cut" buttons for common searches on the results page?

Using the latest data assist for MySQLi. I have a search and results page for a rather complex database table. I'd like to have a few "short cut" buttons right on the results page for the more frequently searched for things like common categories. If the search feature used URL variables, I could just easily include those in the button link. But since the search feature doesn't do that, how do I code a button to trigger the proper query?

I'd want to code it so that it would do something like the following:

WHERE table.field = 1

I've attached both relevant pages. The field I'm primarily interested in is the 'category' field.

Sign in to reply to this post

Ray BorduinWebAssist

It will automatically work with url parameters, so you can use them for the quick search. Just use the same parameter names as you have in your form element names.

Sign in to reply to this post
Did this help? Tips are appreciated...

Justin@AdventDesign

That sounds awesome but it doesn't appear to work. Let me make sure I understand correctly. In the two pages attached I have a field called "category" and the form elements are named the same. So if I understand, I should be able to have "tbl_homes_results.php?category=7" in the URL string and it should return results as if I had selected that on the search page, correct? It appears to not affect search results at all.

Sign in to reply to this post

Ray BorduinWebAssist

You still need to satisfy the search trigger, so the url would be: tbl_homes_results.php?Search=1&category=7

Sign in to reply to this post
Did this help? Tips are appreciated...

Justin@AdventDesign

Perfect, that did it! Thanks Ray.

And may I say, kudos on the new dataassist code. It's so much easier to manually add and change columns.

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