Overview: I am making a concept site for events and because events can tour around a country and the world, I wanted to make it easy for the people who are adding the events, because we already have a list of venues, and new venues are being added each day we have set up our database ER with the following tables
country state suburb
The state table links back to the country table using the id of the country, while the suburb table links back to the state.
Now while this is all good and fine, I think I have found an issue, it more about how do I get the php code to know that that country to search for all the venues that are in that country, if I have not store the country or state id in the venue. I have only store the suburb.
I wanted to have less columns in my database, but I am not thinking why not put those two in, this was we will be able to find the venues, which in return will find the events linked to that venue.
I do wonder if their is a better way to do this, and any feedback would be helpful.
To clarify venues table only links to suburb, and suburb links to state and state links to country.
Here is a copy of part of my ER diagram