show multiple google maps on webpage



I show addresses on a webpage and want to show the locations on a small map.
I have a javascript function for the maps using Google Api 3. The function is working but I have no idea to show it in my php-loop. Maybe it's not possible due to the difference in javascript and php.

while($row = mysql_fetch_array($sql)) {

$id = $row["id"];
$name = $row["name"];
$spec = $row["specialism"];
$address = $row["address"];
$telephone = $row["telephone"];
$lat = $row["lat"];
$lon = $row["lng"];
$loc = "$lat $lon";
if(($lat > '0') && ($lat > '0')) {

}

$outputList .= '<table cellspacing="0" bgcolor="#FFFFFF" border="0"><tr>
<td colspan="2" class="boardHeader" style="padding-left: 6px;">' . $name . '</td>
<td class="boardHeader" style="color:#3300CC; padding-left:6px; padding-right:2px; font-weight:bold" align="right">' . $spec . '</td>
</tr>
<td>&nbsp;</td>
<td valign="left">&nbsp;&nbsp;</td>
<td rowspan="4"><div id="map_canvas-<?php echo $num2++; ?>" style="width:200px; height:150px">';
echo "javascript:GetMedicalMap($lat,$lon);";

$outputList .= '</div></td>
</tr>
<tr>
<td style="padding-left: 6px;">Address:</td>
<td colspan="1" style="vertical-align:middle" width="42%" >' . $address . ' </td>
</tr>
<tr>
<td style="padding-left: 6px;">Telephone:</td>
<td >' . $telephone . '</td>
</tr>
<tr>
<td >&nbsp;&nbsp;</td>
<td >&nbsp;&nbsp;</td>
</tr><br />
';
}

thanks for any advise,
Marco
.



Relevant Pages

  • Re: Todays ride (which GPS?) ...
    ... I'd love to map the Taff Trail. ... >> I used the Google API, ... >> I'm looking at building a site so others can upload their data. ...
    (uk.rec.cycling)
  • Re: Mixing javascript and ASP.net code
    ... function GetMap() ... map = new VEMap; ... I am using Live Earth SDK, and have very little Javascript knowledge, but I need to insert values into a Javascript function, where the vales are in the ASP.net VB code. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Blood Libel
    ...  They are not lies. ... the things they quote and she actually posted on her webpage the map ...
    (alt.usage.english)
  • Combining user script with an existing web page : cross-browser ways?
    ... Is there a way to make a (cross-browser) javascript function that will ... open an existing webpage in a new window ...
    (comp.lang.javascript)
  • Re: Need some examples using the WebBrowser Control
    ... webpage and execute a JavaScript function on that page works. ... concern with the stability of the page. ...
    (microsoft.public.vb.general.discussion)