DEBUGGING
Address: Glendora
Username: greenlegion
Waldo: GeoIP_Location Object
(
[countryCode] => US
[countryName] => United States
[region] => CA
[city] => Glendora
[postalCode] =>
[latitude] => 34.1321
[longitude] => -117.8511
[areaCode] => 626
[dmaCode] => 803
[countryCode3] => USA
)
Geocode:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: geocode
Filename: search/template_0004.php
Line Number: 193
Lat: 34.1321
Lon: -117.8511
Geo Source:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: geo_source
Filename: search/template_0004.php
Line Number: 196
Query: SELECT DISTINCT locations.id, locations.location_number, locations.name, locations.street_address, locations.street_address_line2, locations.street_address_line3, locations.city, locations.state_province, locations.zip_postal_code, locations.country, locations.phone, locations.toll_free, locations.fax, locations.email, locations.website_url, locations.contact_name, locations.contact_title, locations.additional_info, locations.custom1, locations.custom2, locations.custom3, locations.custom4, locations.custom5, locations.custom6, locations.image, locations.marker_url, locations.products, locations.lat, locations.lon, (3956 * 2 * ASIN(SQRT( POWER(SIN((34.1321 - locations.lat) * pi()/180 / 2), 2) + COS(34.1321 * pi()/180) * COS(locations.lat * pi()/180) * POWER(SIN((-117.8511 - locations.lon) * pi()/180 / 2), 2) )) ) AS distance
FROM (locations)
LEFT JOIN accounts ON locations.account_id = accounts.id
WHERE `accounts`.`username` = 'greenlegion'
AND (3956 * 2 * ASIN(SQRT( POWER(SIN((34.1321 - locations.lat) * pi()/180 / 2),2) + COS(34.1321 * pi()/180) * COS(locations.lat * pi()/180) * POWER(SIN((-117.8511 - locations.lon) * pi()/180 / 2),2) )) ) <= '50'
ORDER BY distance asc, locations.location_number asc, locations.id asc
LIMIT 5
Total Rows: 5
Rows: Array
(
[0] => stdClass Object
(
[id] => 49014
[location_number] =>
[name] => Eagles Nest West
[street_address] => 1562 N Cahuenga Blvd
[street_address_line2] =>
[street_address_line3] =>
[city] => Los Angeles
[state_province] => CA
[zip_postal_code] => 90028
[country] =>
[phone] => (323) 469-2449
[toll_free] =>
[fax] =>
[email] =>
[website_url] =>
[contact_name] =>
[contact_title] =>
[additional_info] => Big Wang's
[custom1] =>
[custom2] =>
[custom3] =>
[custom4] =>
[custom5] =>
[custom6] =>
[image] =>
[marker_url] =>
[products] =>
[lat] => 34.099598
[lon] => -118.329102
[distance] => 27.4159304132193
)
[1] => stdClass Object
(
[id] => 49017
[location_number] =>
[name] => El Guapo
[street_address] => 7250 Melrose Ave.
[street_address_line2] =>
[street_address_line3] =>
[city] => Los Angeles
[state_province] => CA
[zip_postal_code] => 90046
[country] =>
[phone] => (323) 297-0471
[toll_free] =>
[fax] =>
[email] =>
[website_url] =>
[contact_name] =>
[contact_title] =>
[additional_info] => El Guapo Cantina
[custom1] =>
[custom2] =>
[custom3] =>
[custom4] =>
[custom5] =>
[custom6] =>
[image] =>
[marker_url] =>
[products] =>
[lat] => 34.083481
[lon] => -118.347443
[distance] => 28.5729392322127
)
[2] => stdClass Object
(
[id] => 49026
[location_number] =>
[name] => Irvine Fan Club
[street_address] => 4250 Barranca Pkwy
[street_address_line2] =>
[street_address_line3] =>
[city] => Irvine
[state_province] => CA
[zip_postal_code] => 92612
[country] =>
[phone] => (949) 857-2448
[toll_free] =>
[fax] =>
[email] =>
[website_url] =>
[contact_name] =>
[contact_title] =>
[additional_info] => Eat Philly's Best
[custom1] =>
[custom2] =>
[custom3] =>
[custom4] =>
[custom5] =>
[custom6] =>
[image] =>
[marker_url] =>
[products] =>
[lat] => 33.682507
[lon] => -117.806145
[distance] => 31.1489862190981
)
[3] => stdClass Object
(
[id] => 52751
[location_number] =>
[name] => Philly West
[street_address] => 1870 Westwood Blvd.
[street_address_line2] =>
[street_address_line3] =>
[city] => Lost Angeles
[state_province] => CA
[zip_postal_code] => 90027
[country] => United States
[phone] => (310) 474-9787
[toll_free] =>
[fax] =>
[email] =>
[website_url] => http://www.phillywestbarandgrill.com
[contact_name] =>
[contact_title] =>
[additional_info] =>
[custom1] =>
[custom2] =>
[custom3] =>
[custom4] =>
[custom5] =>
[custom6] =>
[image] =>
[marker_url] =>
[products] =>
[lat] => 34.048717
[lon] => -118.435471
[distance] => 33.9066526613538
)
[4] => stdClass Object
(
[id] => 49016
[location_number] =>
[name] => LA Eagles Fans
[street_address] => 13484 Washington Blvd.
[street_address_line2] =>
[street_address_line3] =>
[city] => Marina Del Ray
[state_province] => CA
[zip_postal_code] => 90292
[country] =>
[phone] => (310) 823-0933
[toll_free] =>
[fax] =>
[email] =>
[website_url] =>
[contact_name] =>
[contact_title] =>
[additional_info] => The Sports Harbour
[custom1] =>
[custom2] =>
[custom3] =>
[custom4] =>
[custom5] =>
[custom6] =>
[image] =>
[marker_url] =>
[products] =>
[lat] => 33.990532
[lon] => -118.446846
[distance] => 35.4506261108757
)
)