Hello!
Im new to PHP and have a need for what I have found out is called AJAX.
I prefer to code in PHP for my DB access.
I need to create a dropdown list using AJAX that updates it self depending on what is slected in the parent dropdown list.
To make matters worse.. It needs to be reliant on a database.
Here is an example of what I would like to achieve.
Ill try to be as clear as I can be.
EX:
CARS
STATE
|
|
|
Condition
|
_________________________________________________
| | | |
NEW USED CLASSIC COMMERICAL
| | | |
| | | |
| | | |
Types Types Types Types
| | | |
------- ------- ------- -------
| | | | | | | |
GM FORD GM FORD GM FORD GM FORD
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
YEAR
MAKE
MODEL
I would like the dropdown to flow in this order.. "Example of a user using the dropdown."
User selects from the dropdown the State of choice from the list available.(The "State" dropdown is populated using data from the SQL DB.. example states available "New York", "Florida", and "Vermont")
User selects "New York"(all available "Conditions" in "New York" are loaded into the next dropdown)
User then selects the condition from the next dropdown.. user selects "New"(database populates new car "Types" available)
User then selects the "Type" from the next dropdown.. user selects "GM"(database then populates a list located below the dropdown boxes that contains all vehicles in the database that fit the criteria.)
example of a car in the GM list
-------------------
Year: 1929
Model: Piece
Color: Blue
Link: URL to the cars page.(clickable link)
--------------------
-------------------
Year: 1948
Model: Thing
Color: Red
Link: URL to the cars page.(clickable link)
--------------------
-------------------
Year: 1994
Model: Prettygood
Color: Yellow
Link: URL to the cars page.(clickable link)
--------------------
I guess what I really need is a full walkthrough on this.. Code for everything and the DB Tables and fields that would need to be created to make at least the example work.. From there ill be able to figure out how to manipulate the example to include more items.
I would very much appreciate ANY and ALL help on this matter..
Thank you so much to anyone who takes the time to look at this..
-LTT