Trouble with city, state in Mysql Query
Hello,
I am having trouble with a query I am trying to setup. Basically, I want the user to type in their city. Then I want the system to ask them which city,state combo is theirs. So if they enter "Washington" the system will return:
Select your city/state:
Washington, NJ
Washington, PA
Washington, DE
City and state are stored as two fields in my mysql DB. I was considering using 'select distinct' but I wasnt sure how it would work in relation to two fields. So how would I go about making sure washington, nj only appears once (its in a database where there will be multiple washington, NJ listed).
So anyone have any ideas or code samples they have used to do something like this?
Thanks in advance,
Mark
