Sometimes something that sounds complicated turns out to be easy. I was creating a page that would display details of councils taken from an xml page, I wanted to embed a google map zoomed in on the latitude or longitude and showing a map marker.
Declare two variables one for latitude and One for longitude, in this case I'm getting them from an xml file, but you could easily get them from a database
$lat = $council->lat;
$lng = $council->lng;
<img src="http://maps.google.com/maps/api/staticmap?center=<?php echo $lat ?>,<?php echo $lng ?>&zoom=14&markers=<?php echo $lat ?>,<?php echo $lng ?>&maptype=hybrid&&size=400x300&sensor=false" style="width: 400px; height: 400px;" />
Keywords: php, google map, marker, embed