Radius Search Results function in php -
i have search function on site takes city state , zip , searches radius , displays results found have tested breaks @ line of coding: if ($origin_id[0] != -1) $sql .= " , " . $prefix . ".originlocationid in (" . implode(",", $origin_id) . ") "; the globals defined , display correctly... if not put in radius display results city.. radius inputted breaks... i have included radius function well... function getlocationsearchcriteria(&$sql, &$urlappend, $prefix) { $origin_id = location::getlocationid($globals["originstate"], $globals["origincity"], $globals["originzip"]); if (!is_array($origin_id)) { $o = $origin_id; $origin_id = array(); $origin_id[0] = $o; } if (!empty($globals["originradius"])) { $origin = new location($origin_id[0]); ----------->>>>>> $origin_i...