Jump to content

Pulling google map data from Database


jjmusicpro

Recommended Posts

I made a database that holds the values for the markers on a google map,

i am able to pull the where to center map, but i cant pull the values into the javascript.

everyting works except this

 

any ideas?

 

this is whats in my header:

$mapcontent = $row['maplocations'];

 

here is info for map

 

      map.setCenter(new GLatLng(<?php echo $mapcenter; ?>),9);

   

<?php echo $mapcontent; ?>

 

    }

    else {

      alert("Sorry, the Google Maps API is not compatible with this browser");

    }

Link to comment
https://forums.phpfreaks.com/topic/92307-pulling-google-map-data-from-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.