airport flight info

How does one get information on names for each city in reference to airport flight codes something I hope somone can tell me where to get the information thank you.

If you bring up any airport page, it will tell you the name and city at the top of the page.
In our resources section, we have a list of the airports and their name and city for each state: flightaware.com/resources/airport/browse/