Akkari Posted February 22, 2011 Share Posted February 22, 2011 Hello there everyone. I'm pretty poor at Javascript but currently working on it. I have a simple question with regards to the current Google Maps javascript API. I'm trying to retrieve locations from MySQL and post them on a map as well as allow the user to enter a new location and store it in the db. So far I think I'm getting my hands on the right stuff. XML to output map: mysql > php > xml > javascript > display on map. In case of storing, javascript sending GET parameters to a PHP script which then parses and stores them in the db. The question is: With a lot of searching I think I found the tutorials that can help me achieve this. However, they are from 2007. This one: http://code.google.com/apis/maps/articles/phpsqlinfo.html and this one: http://code.google.com/apis/maps/articles/phpsqlajax.html These are the only tutorials I could find related to PHP and MySQL. Are they up to date or will they break when I try to implement them? I'm pretty confused with all the materials on code.google.com but found those to be the best suited to my needs. Are there things I'd have to consider that are no longer supported by the API or so? Can you recommend a better/ up to date tutorial? Thanks a lot. Quote Link to comment https://forums.phpfreaks.com/topic/228488-google-maps-api-anyone-familiar/ Share on other sites More sharing options...
diasansley Posted February 25, 2011 Share Posted February 25, 2011 technically u dnt need xml if u just wana print the markers u could read from the database using the while(fetch) and add a split as in a ","so that the array would be as eg: germany,holland,america let me kwn how u progress happy coding Quote Link to comment https://forums.phpfreaks.com/topic/228488-google-maps-api-anyone-familiar/#findComment-1179433 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.