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 25, 10:17 am, Rossko <[email protected]> wrote:
> > have you got an example of the code used to achieve this?
>
> Examples of how to do everything that is needed are already included
> in the tutorial you started with. It might be wise to spend a little
> time understanding how it works, and adding-on your new requirement
> bit by bit. Start with adding your extra drop-down box to the form.
--
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.