Copy link to clipboard
Copied
I've got a pretty dumb question.
When creating a search query (in DW CS4), how do I specify that if a field is submitted blank, the DB should return all results?
As in, maybe I want to find all people who live in a certain city - I would choose the city in the search form, but I would leave "name" blank, because I don't want to limit by name. So how do I tell it to not try to match blank fields and instead return all?
Thanks in advance.
+mf
Copy link to clipboard
Copied
Anyone? Anything? I figured this would be an easy one.
I've got the following form fields to search the corresponding columns:
So that's what I'm working with and I could REALLY use some help... I've never quite gotten the hang of this.
Copy link to clipboard
Copied
It's not quite as simple as you would like to think. However, the following article in the Dreamweaver Cookbook might help: http://cookbooks.adobe.com/post_Create_search_query_with_optional_fields-16245.html.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now