I have attached the original file. The problem seems to be with a misplaced quotation mark in ['HotelName"] on line 43:
(eg.)
"<strong>Address:</strong><br />".$row_rsHotels['HotelName”]
When replaced with ['HotelName'] and uploaded to my server, I get the following error in view source:
<b>Warning</b>: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in <b>/home/jrover/public_html/google_javascript/wagmp_map_6.php</b> on line <b>74</b><br />
***view source with new 'wagmp_map_6.php' file using dynamic coordinates provided from a recordset called 'rsIndex'***
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAtDBpckeaBENJWY5lWVPNyxShyE0kW2mXS8aA0KkFzu6JDlf95RSja3ArBScQpEzGoEgacw4T2uYP4g">/*wagmp*/</script>
<script type="text/javascript">
/*wagmp*/
function wagmp_map_6() {
if(GBrowserIsCompatible()) {
if(!document.getElementById('wagmp_map_6')) return false;
var map = new GMap2(document.getElementById('wagmp_map_6'));
map.enableContinuousZoom();
map.enableDoubleClickZoom();
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
var geocoder = new GClientGeocoder();
var fromAddress = {
enabled: false,
street: '',
city: '',
state: '',
zip: '',
country: '',
full: ''
};
var icon_0 = new GIcon();
icon_0.image = 'http://google.webassist.com/google/markers/traditionalflat/pacifica.png';
icon_0.shadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.png';
icon_0.iconSize = new GSize(34,35);
icon_0.shadowSize = new GSize(34,35);
icon_0.iconAnchor = new GPoint(9,23);
icon_0.infoWindowAnchor = new GPoint(19,0);
icon_0.printImage = 'http://google.webassist.com/google/markers/traditionalflat/pacifica.gif';
icon_0.mozPrintImage = 'http://google.webassist.com/google/markers/traditionalflat/pacifica_mozprint.png';
icon_0.printShadow = 'http://google.webassist.com/google/markers/traditionalflat/shadow.gif';
icon_0.transparent = 'http://google.webassist.com/google/markers/traditionalflat/pacifica_transparent.png';
var address_0_0 = {
street: '',
city: '',
state: '',
zip: '',
country: '',
infowindow: 'custom',
infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><strong>Address:</strong><br /><br />, </span>',
full: ', , , ',
isdefault: true,
addressType: 'address',
loop: 'rsHotels',
latitude: '',
longitude: '',
markerStyle: 'Google Traditional (flat)',
markerColor: 'Pacifica'
};
geocoder.getLatLng (
address_0_0.full,
function(point) {
if(point) {
var marker = new GMarker(point, icon_0);
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(address_0_0.infowindowtext);
});
if(!fromAddress.enabled || 'address_0_0' != 'address_0_0') {
map.setCenter(point, 13);
map.addOverlay(marker);
marker.openInfoWindowHtml(address_0_0.infowindowtext);
}
}
else {
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
);
<br />
<b>Warning</b>: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in <b>/home/jrover/public_html/google_javascript/wagmp_map_6.php</b> on line <b>74</b><br />
}
}</script>
</head>
<body>
<div id="wagmp_map_6" style="width: 240px; height: 320px;"></div>
<br />
<div>786</div>
<div>784</div>
<div>783</div>
<div>782</div>
<div>781</div>
<div>780</div>
<div>779</div>
<div>778</div>
<div>777</div>
<div>776</div>
<script type="text/javascript" src="google_javascript/wagmp_maps.js">/*wagmp*/</script></body>
</html>
Thanks!!