close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Map does not show up

Thread began 9/09/2009 7:05 pm by justinrovnanik388803 | Last modified 9/11/2009 3:14 pm by justinrovnanik388803 | 2251 views | 9 replies


I have attached the original file. The problem seems to be with a misplaced quotation mark in ['HotelName"] on line 43:

"<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" "">
<html xmlns="" xmlns:v="urn:schemas-microsoft-com:vml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="">/*wagmp*/</script>
<script type="text/javascript">

function wagmp_map_6() {
if(GBrowserIsCompatible()) {
if(!document.getElementById('wagmp_map_6')) return false;
var map = new GMap2(document.getElementById('wagmp_map_6'));
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 = '';
icon_0.shadow = '';
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 = '';
icon_0.mozPrintImage = '';
icon_0.printShadow = '';
icon_0.transparent = '';

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 (
function(point) {
if(point) {
var marker = new GMarker(point, icon_0);
GEvent.addListener(marker, 'click', function() {
if(!fromAddress.enabled || 'address_0_0' != 'address_0_0') {
map.setCenter(point, 13);
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 />


<div id="wagmp_map_6" style="width: 240px; height: 320px;"></div>
<br />



<script type="text/javascript" src="google_javascript/wagmp_maps.js">/*wagmp*/</script></body>


Attached Files

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...