J
|
Jane 11/4/2009 |
Ady, |
T
|
Tempus_Erus author 11/4/2009 |
Ady, I recommend you to have a look at the 'How to setup dependent dropdown boxes on Edit/Add pages' tutorial here: http://www.xlinesoft.com/phprunner/php-database.htm
|
J
|
Jane 11/5/2009 |
Ady, |
T
|
Tempus_Erus author 11/5/2009 |
Ady, this is how dependent dropdowns work. You choose rate in the first dropdown and second dropdown is filled with prices for selected rate. Is it what you want to do?
|
![]() |
Sergey Kornilov admin 11/6/2009 |
Ady, |
K
|
khanate 11/16/2009 |
Ady, |
T
|
Tempus_Erus author 11/16/2009 |
Ady, Do you mean you want the dropdown list to look like this? Rate Group A - $1.00 - $1.25 - $1.50 - $1.75 Rate Group B - $1.05 - $1.30 - $1.55 - $1.80 Rate Group C - $1.10 - $1.35 - $1.60 - $1.85 WHERE rate group name and all four prices are contained in each single rate group record? To pseudo-code it, if you're using MySQL, you're wanting a lookup table in which each option is populated by concat(ratename,' - ',price1,' - ',price2,' - ',price3,' - ',price4) I first thought you meant that you would select the rate group and THEN select one of four prices, but if you are just wanting to see the four prices associated with the rate group, this type of code is what you would be looking for. Doing it would depend on the type of database you use, and you would specify the code in the lookup table section marked "Display Field", and then picking the Custom expression list item. Does that do it? |