Hospitals in echo $city ?>, echo $longState ?>. USA
$rowsplus1 = $rows+1;
//echo "rows=$rows
"; if ($rows==0){ //echo "No ".$type."(s) found in ".$county."
"; }else{ //echo $rows." ".$type."(s) found in ".$county."
"; } echo "
";
//js array vars
$name = "js_featArr";
$name2 = "js_realRows";
function phpArrayToJsArray($name,$array,$prePend='var ')
{
if (is_array($array)) { // Array recursion
$result = $name.' = new Array();'."\n";
foreach ($array as $key => $value) {
$result .= phpArrayToJsArray($name.'["'.$key.'"]',$value,'');
}
} else { // Base case of recursion
$result = $name.' = "'.$array.'";'."\n";
}
return $prePend.$result;
}
?>
"; if ($rows==0){ //echo "No ".$type."(s) found in ".$county."
"; }else{ //echo $rows." ".$type."(s) found in ".$county."
"; } echo "
Rating ? | Name | Address | City | Zip | "; /* * Displays the results from the query which are stored in an array. Uses the * function to get the star rating for each blood bank. * See /libs/funcs/funcs.php */ foreach($city2Result as $num=>$res) { $ratingImg = "Rate This!"; $count=$num; //echo $num . ': ' . $res['CenterName'] . ' rating: '. ($res['rating_a'] == null ? 'null':$res['rating_a']) . '|
".$ratingImg." | ".$featArr[$count]{$num."CenterName"}." | ".$featArr[$count]{$num."Streetaddy"}." | ".$featArr[$count]{$num."City"}." | ".$featArr[$count]{$num."Zip"}." | "; echo "|
All in state? Find Hospitals in $longState ";?> echo " |