here is the store locator version that isnt working::
http://speechbubbledesigns.com.au/store/

here are the two changes i made to the xml generator php

// Get parameters from URL
$center_lat = $_GET["lat"];
$center_lng = $_GET["lng"];
$radius = $_GET["radius"];
$category = $_GET["category"];

and:

// Search the rows in the markers table
$query = sprintf("WHERE category = $category SELECT address, name,
lat, lng, ( 3959 * acos( cos( radians('%s') ) * cos( radians( lat ) )
* cos( radians( lng ) - radians('%s') ) + sin( radians('%s') ) *
sin( radians( lat ) ) ) ) AS distance FROM markers HAVING distance <
'%s' ORDER BY distance LIMIT 0 , 20",
  mysql_real_escape_string($center_lat),
  mysql_real_escape_string($center_lng),
  mysql_real_escape_string($center_lat),
  mysql_real_escape_string($radius));
$result = mysql_query($query);

as you can see it is not working.....
i tried to follow mike's suggestions, but i have had no luck

On Jan 24, 9:09 pm, Mike Williams <[email protected]> wrote:
> Include thestateas a parameter in the query sent from the client to
> the server, in exactly the same way that the example passes the radius.
>
> In the server, read thestateparameter in exactly the same way that the
> example reads $radius.
>
> Add a WHEREstate= $stateclause to the SQL query.
>
> --
> Mike Williams

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to