Blood Bank Locations in

$res) { $ratingImg = "Rate This!"; $count = $num; //echo $num . ': '.$res['CenterName'].' rating: '.($res['rating_a'] == null ? 'null':$res['rating_a']).'
'; $featArr[$count]{$num."CenterName"} = $res['CenterName']; $featArr[$count]{$num."City"} = $res['City']; $featArr[$count]{$num."laty"} = $res['laty']; $featArr[$count]{$num."longy"} = $res['longy']; $featArr[$count]{$num."Streetaddy"} = $res['Streetaddy']; $featArr[$count]{$num."Zip"} = $res['Zip']; $featArr[$count]{$num."ID"} = $res['ID']; $featArr[$count]{$num."State"} = $state; $ID = $featArr[$count]{$num."ID"}; //echo $ID; /* * Gets the star rating for each bank. * See /libs/funcs/funcs.php */ if ($res['rating_a'] != null) { $ratingImg = getStarRating($res); } if ($bgcolor == $rowcolor2) $bgcolor = $rowcolor1; else $bgcolor = $rowcolor2; echo ""; echo ""; echo ""; } echo "
Rating NameAddressCityZip
".$ratingImg."".$featArr[$count]{$num."CenterName"}."".$featArr[$count]{$num."Streetaddy"}."".$featArr[$count]{$num."City"}."".$featArr[$count]{$num."Zip"}."
";?>
"; //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; } ?>