UPDATED: trying to store an array in php then call a javascript function
<p>I'm trying to store results in an array from mysql using php, then using the results to call a javascript funtion to use the results there. I'm not sure why my map isn't showing up (trying to implement google maps into my page)</p>

<p>My php/html/javascript call</p>

<pre><code> &lt;?php
.....
&lt;div id="content"
           ......

$address=array();
//will list out where to go
while ($sec = mysql_fetch_array($result2)) {
        $address[$x++] = ($sec[5] . " " . $sec[7]);
}
print_r($latlng);
print_r($address);
mysql_close($link);
?&gt;

&lt;div id="address_container"&gt;
&lt;?php
print array_shift($address);
?&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>My Javascript code:</p>

<pre><code>    &lt;script type="text/javascript"&gt;
var geocoder;
  var map;
  function initialize() {
    geocoder = new google.maps.Geocoder();
    var latlng = new google.maps.LatLng(-34.397, 150.644);
    var myOptions = {
      zoom: 8,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    map = new google.maps.Map(document.getElementById("map_canvas"), myOp$
  }

function codeAddress() {
var address = document.getElementByID("address_container").innerHTML;
console.log(address);
    geocoder.geocode( { 'address': address}, function(results, status) {
      if (status == google.maps.GeocoderStatus.OK) {
        map.setCenter(results[0].geometry.location);
        var marker = new google.maps.Marker({
            map: map,
            position: results[0].geometry.location
        });
      } else {
        alert("Geocode was not successful for the following reason: " + s$
      }
    });
}
</code></pre>
