"; } $num = -1; if ($show) { mysql_connect("oldev-cr01.pbs.org", "wetaaccess", "9secnav8"); $query = "SELECT * FROM stations WHERE state LIKE '%$key%' ORDER BY state,city"; $res = mysql("wetadb","$query"); $num = mysql_numrows($res); if ($num==1) { echo "$num station was found in your state.
\n\n"; } elseif ($num>1) { echo "$num stations were found in your state.
\n\n"; } elseif ($num == 0) { echo "No stations were found in your state.
\n\n"; } if ($num > 0) { echo "
\n\n"; } elseif ($num>1) { echo "$num stations were found in neighboring states.
\n\n"; } elseif ($num == 0) { echo "No stations were found in neighboring states.