while($DNB->fetch()){
?>
var infowindow = new google.maps.InfoWindow({content: <?php echo $businessname ?>});
var point = new google.maps.LatLng(<?php echo $lat ?>, <?php echo $lon ?>);
var marker = new google.maps.Marker({position: point, map:map});
google.maps.even
t.addListener(marker, ‘click’, function(){infowindow.open(map,marker);});
When I run the above code the map does not show. However, when I replace the php tags with just “blah” it works. I am not sure why.
Try putting quotes around the PHP snippets.