I'm creating a system with the Store Locator on Google Maps API - http://storelocator.googlecode.com/git/index.html?utm_source=geoblog&utm_campaign=sl
I was using this example: http://storelocator.googlecode.com/git/examples/dynamic.html
I've got it working fine but it's pulling from a CSV whereas I'm looking to get it pulling from a database instead.
The javascript can be found here that extract the data from CSV: http://storelocator.googlecode.com/git/examples/medicare-dynamic-ds.js
I've had a look at the documentation (http://storelocator.googlecode.com/git/reference.html) which has the storeLocator.DataFeed class but can't seem to figure out how to use it correctly.
Does anyone have an example of this pulling from a database as i'm struggling to get my head around it?
As you want to use a database the correct example can be found Here.The problem with this example is it uses the deprecated
mysql_
functions. The code below uses PDO instead of thesemysql_
functions inphpsqlsearch_genxml.php