title: Google maps static marker api with address
body: <p>I'm somewhat of a newbie here but I understand that if you ask a question you have got to pick an answer.</p>
  
  <p>I'm trying to add a google maps to a site with the <code>&lt;img&gt;</code> tag in PHP. There may be mulitple markers on the maps which coincide with the address. My problem is that the markers are not showing up themselves. Can someone point me in the right direction as to what I am doing wrong and help me find a solution. I have read through the documentation on the google maps api but it is not clear how to do this with an address.</p>
  
  <p>My code:</p>
  
  <pre><code>   &lt;?php
  
          $markers = "&amp;markers=color:green%7CAustralia";
  
          $mapUrl = "http://maps.googleapis.com/maps/api/staticmapsize=550x200".$markers."&amp;sensor=true";
  
          echo "&lt;img src='$mapUrl' /&gt;";
  
  
      ?&gt;
  </code></pre>
  
  <p>This in theory should show me a map of Australia with a marker dropped however it does not seem to work. Also is it possible to dynamically add markers to maps this way with address?</p>
  
  <pre><code>     eg. $markers = "&amp;markers=color:green%7CAustralia";
           $markers =  $markers."&amp;markers=color:green%7CAmerica";
  </code></pre>
  
  <p>Can someone point me in the right direction?</p>