DEBUGGING
Address: Glendora
Username: rnouvel
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` = 'rnouvel'
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: 3
Rows: Array
(
[0] => stdClass Object
(
[id] => 46887
[location_number] => 67
[name] => Lollipops and Polkadots
[street_address] => 4825 Main St.
[street_address_line2] =>
[street_address_line3] =>
[city] => Yorba Linda
[state_province] => CA
[zip_postal_code] => 92886
[country] => USA
[phone] => 714-701-9890
[toll_free] =>
[fax] =>
[email] =>
[website_url] => www.lollipopsandpolkadots.com
[contact_name] =>
[contact_title] =>
[additional_info] =>
[custom1] =>
[custom2] =>
[custom3] =>
[custom4] =>
[custom5] =>
[custom6] =>
[image] =>
[marker_url] =>
[products] =>
[lat] => 33.890961
[lon] => -117.813950
[distance] => 16.7847349523625
)
[1] => stdClass Object
(
[id] => 46939
[location_number] => 119
[name] => The Homework Company
[street_address] => 406 Signal Rd.
[street_address_line2] =>
[street_address_line3] =>
[city] => Newport Beach
[state_province] => CA
[zip_postal_code] => 92663
[country] => USA
[phone] => 714-745-0264
[toll_free] =>
[fax] =>
[email] =>
[website_url] =>
[contact_name] =>
[contact_title] =>
[additional_info] =>
[custom1] =>
[custom2] =>
[custom3] =>
[custom4] =>
[custom5] =>
[custom6] =>
[image] =>
[marker_url] =>
[products] =>
[lat] => 33.619041
[lon] => -117.910912
[distance] => 35.589784160595
)
[2] => stdClass Object
(
[id] => 108377
[location_number] =>
[name] => Newport Cottages
[street_address] => 401 Newport Center Drive
[street_address_line2] => Suite A206
[street_address_line3] =>
[city] => Newport Beach
[state_province] => CA
[zip_postal_code] => 92660
[country] => USA
[phone] => 949-644-4122
[toll_free] =>
[fax] =>
[email] =>
[website_url] => www.NewportCottages.com
[contact_name] =>
[contact_title] =>
[additional_info] =>
[custom1] =>
[custom2] =>
[custom3] =>
[custom4] =>
[custom5] =>
[custom6] =>
[image] =>
[marker_url] =>
[products] =>
[lat] => 33.615818
[lon] => -117.874504
[distance] => 35.6720444190188
)
)