I'm making a car website where a user has 4 drop down boxes to choose his car make, model, year, and trim.
What I want to do is if a user selects a make, lets say Honda, the model drop down box should only list honda models. Now if the user selects civic, the years the civic was made should only be in the year drop down box, etc. etc.
Would it be best to use a mysql database for this kind of stuff, or just hard code every make, model, year, etc. which would be potentially long.
Also how would I go about doing this using mysql? I know how to connect to mysql, database, I'm just not familiar on how to code this.
Thanks. Any input would be appreciated