in my code.. when if i select a state alone, it will show all the cities in state. if i select just a city.. it will show just that one city. it was working that way, but after adding more code it will change it, so now when i select an individual city, it will show that city at the top, but all the other cities below it (except for the cities that were below the picked city in the all state search)
lets say i pick california.. i will see
1. san diego
2. oakland
3. sf
4. anaheim
5. concord
6. walnut creek
but if i pick a city, say.. anaheim i will see
1. anaheim
2. san diego
3. sf
and thats all. nothing below the original city
if($city == "sf" ) { include "crx/states/ca/SF.php";}
if($city == "bf") { include "crx/states/ca/BF.php";}
if($city == "chico") { include "crx/states/ca/chico.php";}
if($city == "sac") { include "crx/states/ca/SAC.php";}
if($city == "stockton") { include "crx/states/ca/STOCK.php";}
if($city == "monterey") { include "crx/states/ca/monterey.php";}
if($city == "slb") { include "crx/states/ca/slb.php";}
if($city == "fresno") { include "crx/states/ca/FRESNO.php";}
if($city == "modesto") { include "crx/states/ca/MOD.php";}
if($city == "sd") { include "crx/states/ca/SD.php";}
if($city == "la") { include "crx/states/ca/LA.php";}
if($city == "oc") { include "crx/states/ca/OC.php";}
if($city == "sb") { include "crx/states/ca/SB.php";}
if($city == "ie") { include "crx/states/ca/IE.php";}
if($search == "") {echo "<font color=red>please enter a search word</font>";}
else
if($city == "")
{ include "crx/states/ca/SF.php"; include "crx/states/ca/BF.php";
include "crx/states/ca/chico.php"; include "crx/states/ca/SAC.php";
include "crx/states/ca/STOCK.php"; include "crx/states/ca/monterey.php";
include "crx/states/ca/slb.php"; include "crx/states/ca/FRESNO.php";
include "crx/states/ca/MOD.php"; include "crx/states/ca/SD.php";
include "crx/states/ca/LA.php"; include "crx/states/ca/OC.php";
include "crx/states/ca/SB.php"; include "crx/states/ca/IE.php"; }