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

How get selected category's products in 2nd dropdown ....

New Here ,
Sep 16, 2010 Sep 16, 2010

I have 2 tables,


category

------------

catid

catname

Products

----------------

proId

catid

proName

========================================

category:

catId   catname

1          abc

2          xyz

Products:


proId      catdId         proName

1            1                    a

2             1                    b

3             1                    c

4              2                   x

Question:

It is possible I seleect category "ABC"  then second drown down show proname (a',b,c)..

If select category "XYZ" , show it releted product....?

thanks

349
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 ,
Sep 16, 2010 Sep 16, 2010
LATEST

The concept you are looking for is called related selects.  A google search will show you various ways to accomplish this.  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