Hi there!

I have used this >> 
http://code.google.com/intl/da/apis/maps/articles/phpsqlajax.html
really useful tutorial on how to use PHP & MysSQL in plotting data on
a map from a database. :)

Now I want to display different data from 3 different tables (in the
same database). When duplicating that function >>

GDownloadUrl("phpsqlajax_genxml.php", function(data) {
  var xml = GXml.parse(data);
  var markers = xml.documentElement.getElementsByTagName("marker");
  for (var i = 0; i < markers.length; i++) {
    var name = markers[i].getAttribute("name");
    var address = markers[i].getAttribute("address");
    var type = markers[i].getAttribute("type");
    var point = new GLatLng(parseFloat(markers[i].getAttribute
("lat")),
                            parseFloat(markers[i].getAttribute
("lng")));
    var marker = createMarker(point, name, address, type);
    map.addOverlay(marker);
  }
});

where I  - of course have replace all the variables (i.e.
phpsqlajax_genxml.php >> phpsqlajax_genxml2.php & markers >> marker2)
with the appropriate ones...

But I get a blank map-page when trying to view the revised map...

Any one tried to accomplished something similar?

Cheers,
Adam

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