I have a database table of customers, the cust_id is the primary key and is an autonumber field. The other fields are name address town county etc.
I wish to have a page on my site with dynamic linked dropdown boxes as follows Box 1 would show all the counties listed in the database, when one is selected Box 2 would show the towns listed in the database for that county and when one is selected Box 3 would show all the customers listed in the database.
The problem I have is that when attempting to write an sql to achieve this, I have been unable to remove duplicate entries, so if i have 10 customers in a county I get 10 names of the county listed and the same for towns.
Is this possible to code?