
June 10th, 2004, 11:23 AM
|
|
Registered User
|
|
Join Date: Jun 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
How to: Not Repeat Data in a Drop Down Menu populated by a MySQL Database
I have a table in my database that is a listing of stores. I'm populating a drop down menu with the fields CITY and STATE from that table in my database.
Since there are multiple listings in the same city and state, I don't want the drop down menu to just list all the contents of the fields. I would like the drop down menu to have one option from each CITY, STATE listed.
The goal is when a user selects a city from the drop down menu, the page will display all of the stores listed for that city.
I'm using PHP and MySQL. Is there anyone that might be able to help me with this?
|