title: Marker issue with the google tutorial "Using PHP/MySQL with Google Maps"
body: <p>I am trying to make a database of locations to fill out a FAFSA for my non profit and put them up on a google map with a custom marker image but cant seem to get the markers to show up.</p>
  
  <p>here is the php to create the xml:</p>
  
  <pre><code>&lt;?php
  require("mapdbinfo.php");
  
  // Start XML file, create parent node
  $dom = new DOMDocument("1.0");
  $node = $dom-&gt;createElement("markers");
  $parnode = $dom-&gt;appendChild($node);
  
  // Opens a connection to a mySQL server
  $connection=mysql_connect ("Localhost", $username, $password);
  if (!$connection) {  die("Not connected : " . mysql_error());}
  
  // Set the active mySQL database
  $db_selected = mysql_select_db($database, $connection);
  if (!$db_selected) {  die("Can\'t use db : " . mysql_error());}
  
  $query = "SELECT * FROM locations WHERE 1";
  $result = mysql_query($query);
  if (!$result) {  die("Invalid query: " . mysql_error());}
  
  header("Content-type: text/xml");
  
  // Iterate through the rows, adding XML nodes for each
  while ($row = mysql_fetch_assoc($result)){
    // Add to XML document node
    $node = $dom-&gt;createElement("marker");
    $newnode = $parnode-&gt;appendChild($node);
  
    $newnode-&gt;setAttribute("name",$row['name']);
    $newnode-&gt;setAttribute("address", $row['address']);
    $newnode-&gt;setAttribute("lat", $row['lat']);
    $newnode-&gt;setAttribute("lng", $row['lng']);
    $newnode-&gt;setAttribute("type", $row['type']);
    $newnode-&gt;setAttribute("date", $row['date']);
    $newnode-&gt;setAttribute("cord", $row['cord']);
    $newnode-&gt;setAttribute("cord_info", $row['cord_info']);
  }
  
  echo $dom-&gt;saveXML();
  ?&gt;
  </code></pre>
  
  <p>here is the java script:</p>
  
  <pre><code> function load() {
   var location_icon = new google.maps.MarkerImage('images/FAFSA_Logo_icon.png');   
   var map = new google.maps.Map(document.getElementById("map"), {
      center: new google.maps.LatLng(35.105305, -106.628014),
      zoom: 9,
      mapTypeId: 'roadmap'
    });
    var infoWindow = new google.maps.InfoWindow;
    }
  
  downloadUrl("mapmysql.php", function(data) {
  var xml = data.responseXML;
  var markers = xml.documentElement.getElementsByTagName("marker");
   for (var i = 0; i &lt; markers.length; i++) {
  var name = markers[i].getAttribute("name");
  var address = markers[i].getAttribute("address");
  var type = markers[i].getAttribute("type");
  var point = new google.maps.LatLng(
      parseFloat(markers[i].getAttribute("lat")),
      parseFloat(markers[i].getAttribute("lng")));
  var html = "&lt;b&gt;" + name + "&lt;/b&gt; &lt;br/&gt;" + address + "&lt;b&gt; Cordinator &lt;/b&gt;" + cord +    cord_info;
  var icon =  location_icon;
  var marker = new google.maps.Marker({
    map: map,
    position: point,
    icon: icon      
  });
  bindInfoWindow(marker, map, infoWindow, html);
  }
  });
  
  function bindInfoWindow(marker, map, infoWindow, html) {
    google.maps.event.addListener(marker, 'click', function() {
      infoWindow.setContent(html);
      infoWindow.open(map, marker);
    });
  }
  
  function downloadUrl(url,callback) {
   var request = window.ActiveXObject ?
       new ActiveXObject('Microsoft.XMLHTTP') :
       new XMLHttpRequest;
  
   request.onreadystatechange = function() {
     if (request.readyState == 4) {
       request.onreadystatechange = doNothing;
       callback(request, request.status);
     }
   };
  
   request.open('GET', url, true);
   request.send(null);
  }    
  </code></pre>
  
  <p>I can't figure out why they markers aren't showing up. the file is located in that images folder but, there are to many places that this could be going wrong for me to effectively troubleshoot with my current knowledge. I pretty much copied and pasted the code from the google example except for adding some fields to pull from the xml and added a custom icon image.</p>
  
  <p>Any ideas on how to get these markers to show up? the map shows up with the center and zoom I have selected but not the markers.</p>