Wasn't it Mike who wrote: > >Thank you Mike Williams. We are able to write the latitude, longitude, >and details to the mySQL database using php, but I am unsure how to >load the data from the database and place it onto the map...This is >where I'm at http://www.newyorkmustangs.com/maps/maps.html
At the moment, you're reading the data back from the non-existant file http://www.newyorkmustangs.com/maps/details.txt But your code doesn't check whether lines like <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>404 Not Found</TITLE> contains the information you require, and creates the markers anyway, with NotANumber coordinates. The normal way to do it is to call a server script. That server reads through the database and returns the current data by ECHOing the lines of data to its default output channel. The script should also set the MIME type. If you're using PHP you'd include this line (since your client expects plain text) before the first line of data is ECHOed. header("Content-type: text/xml"); -- 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 -~----------~----~----~----~------~----~------~--~---
