Thanks for the response. Yes, that makes sense but now I'm a little confused on something else. If each state/city is a $location variable then how does that specific page know to get data that relates specifically to that state/city?
For example, in the "boston" section of cars.oodle.com/used-cars/boston-area/ hows that that specific page know how to "pull/get" data that relates to boston and not NYC, Las Vegas or even Miami? If all your using is a $location variable wouldn't your php page get confused as to what information to "show/present" to the visitor?
This is what I think what is happening with the above pages. Please tell me if I'm correct or totally wrong.
The page(s) inherent in a another page. Let's called this page init.php
include once "init.php";
In this init.php page a mysql commands takes place.
SELECT * FROM car_info WHERE state='massachusetts'
Then all of the mysql data is converted into $variables and is used on each indivual state/city page?
So in other words, for every state you would need to inherent a different init.php page with a different mysql command. Am I correct or totally wrong?