Hi Guys,
Am trying to display markers on a Google map from longitude's and latitude's I have pulled out of a mysql database then given variable names of $longitude and $latitude appropriately
Then comes the time as I am looping through the array that I want to display markers on the map I have already generated so to do this I have been trying something like this -
?>
<script type="text/javascript">
var point = new GPoint(</script><? echo "$longitude, $latitude"; ?><script type="text/javascript">);
var marker = new GMarker(point);
map.addOverlay(marker);
</script>
<?
The examples I can find just have set longitudes and latitude's set as follows....
?>
<script type="text/javascript">
var point = new GPoint(115.753480, -31.808880);
var marker = new GMarker(point);
map.addOverlay(marker);
</script>
<?
I guess the question is how do I replace the long and lat values with variables defined whilst looping through results from my mysql database? I know the answer to this is just stupid here but any help would be much appreciated..
Thanks heaps in advance!