I can see three obvious problems:

1. There is no column called "route_name" in the "route" table of your
database, so this will always fail
  "SELECT * FROM route where route_name=" .$_GET['route_name']

2. There's an "=" missing on this line
  var url= "routekml_poly.php?route_name"+route_name;
The parameter string should look like ?route_name=foo, not
?route_namefoo

3. You ignore the data obtained by GDownloadUrl(url), and instead use
GGeoXml('http://googlemaps.uuuq.com/route/routekml_poly.php'), passing
no parameter to your server. Your server isn't designed to cope with the
situation where there's no parameter, and produces invalid MySQL query
syntax.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
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