if (!ini_get("register_globals")){ foreach ($_REQUEST as $k=>$v){ if (!isset($GLOBALS[$k])){ ${$k}=$v; } } } ?> if(!($link = @mysql_connect ("localhost", "scoops_seniordb", "bm79kr25"))) echo "cannot connect to database" . mysql_error(); else { mysql_select_db ("scoops_seniorcoops2") or exit("cannot select" . mysql_error()); } $stateQuery = "SELECT DISTINCT state FROM housingList ORDER BY state"; $stateList = mysql_query($stateQuery) or die(mysql_error()); ?>