Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Multiple search but not all options chosen

New Here ,
Jan 05, 2011 Jan 05, 2011

Copy link to clipboard

Copied

I am using CS4 to produce a database using mySQL and php.

I have a table which records a number of variables, each variable being listed in a separate tabel and selected from dropdowns. (For example, London Boroughs, age bands, type of work - the field names are boro, age, work respectively)

I have built a search page which allows a user to select from each of the 3 drop downs and get a list of data which meets the combination selected. BUT if I don't make a choice from one of the lists then I don't get any results.

How can I make it so that I don't have to make a selection from all of the dropdowns?

Thanks for any help.

TOPICS
Server side applications

Views

257
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 05, 2011 Jan 05, 2011

Copy link to clipboard

Copied

LATEST

Thread moved to the Dreamweaver Application Development forum, which deals with server-side issues.

LawWorks Graham wrote:

I have built a search page which allows a user to select from each of the 3 drop downs and get a list of data which meets the combination selected. BUT if I don't make a choice from one of the lists then I don't get any results.

How can I make it so that I don't have to make a selection from all of the dropdowns?

Dreamweaver won't do this out of the box for you. You need to hand code it yourself. See http://cookbooks.adobe.com/post_Create_search_query_with_optional_fields-16245.html.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines