<? include("functions.php"); query_states(); ?>
How do I make it so when you click on the a link in the query_states function it will then look for cities in that state, with out having to make a new file to return the results. I dont know how to do it, but I assume it would be something like:
<? include("functions.php"); if ($states="null" than do query_states(); Which will show all the states to chose from. if ($states="" than do query_cities(); Which will now display the cities to the selected state. if ($cities="" than do query_businesses(); Which now will display the businesses to the selected city. ?>
Clearly I know that script will not work but what will make it work or should I go about it differently?