What's actually causing the problem is the / on the end of your URL.

What happens is that when you ask for the relative URL
  phpsqlsearchgen.php?lat=47.3902942&lng=0.6888514&radius=25
the URL gets expanded to

  http://gbsolutionsinc.net/ProjetMap/nxgooglemapsapi.php/phpsqlsearchgen
.php?lat=47.3902942&lng=0.6888514&radius=25

And that returns the HTML of your web page, whereas what you want to use
is
  http://gbsolutionsinc.net/ProjetMap/phpsqlsearchgen.php?lat=47.3902942&;
lng=0.6888514&radius=25

A quick and dirty fix would be to use the full URL when you fetch your
data.


A better fix would be to:

1. Register an API key for http://gbsolutionsinc.net rather than
http://gbsolutionsinc.net/ProjetMap/nxgooglemapsapi.php

2. Remove the / from the end of your web page URL.

3. Add the line
     header("Content-type: text/xml");
early in your phpsqlsearchgen.php script so that it outputs XML rather
than HTML.


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