Here is my setup (table in caps, fields in lowercase):
PERSON
auto1 (autonumber field)
name1 (name of person)
LOCATION
auto2 (autonumber field)
loc (city visited)
LINK
auto3 (autonumber field)
link_auto1 (person unique autonum from above)
link_auto2 (city unique autonum from above)
numvisits (how many visits unique person made to unique city)
I have people visiting cities. The same person can go to different cities, or the same one multiple times. AND different people can go to cities others have been to, hence the odd table setup.
Now I have a page where the people's names are listed - when I click on a name I need to be able to display a new page - one that shows the NAME of the person, and all the cities that person has visited. This will involve ALL three tables. I have the link working (passing the autonum in the A HREF tag), but cannot get the new page to display correctly.
I know this is a simple query, but cannot get it to function. I have it setup as a SELECT query - should I be doing a JOIN or something?
Any help would be appreciated.