I have following table in my database:
All I need is to load Country list for User with ID=5:
- USA
- Canada
- Germany
Then, when I will click for example on USA, it will load the cities for that country:
- Washington DC
- Miami
I can display country field for every row where User ID=5 but I will have the following result which is not acceptable.
- USA
- Canada
- USA
- Germany
- Canada
- Germany
Are there any tricks which can help me not to duplicate country values?