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

Coordinate Dropdowns

New Here ,
Mar 01, 2010 Mar 01, 2010

Hi,

I have the two queries for use in dropdowns.

SELECT id, descr

FROM districts

ORDER BY descr

SELECT id, district, descr

FROM counties

ORDER BY descr

A district will be selected first, then I would like counties option value to display only rows only where counties.district = districts.id.

Any Ideas?

Thank You in Advance for Your Help!

234
Translate
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 ,
Mar 01, 2010 Mar 01, 2010
LATEST

What you are looking to achieve is frequently called Related Selects.  There are more than one way to approach it.  The one I use is described here http://www.pathcom.com/~bracuk/code/RelatedSelects.htm

Translate
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
Resources