bonjour,
est ce que je peux intégrer le php au sein du code javascript dans google map
<script language="php">
$connection=mysql_connect ("localhost", $username, $password);
$db_selected = mysql_select_db($database, $connection);
echo '<script type="text/javascript">';
$sql = mysql_query('SELECT * FROM markers');
while($row = mysql_fetch_array($sql))
{ echo 'map.addOverlay(createMarker(new GLatLng('.$row['lat'].',
'.$row['long'].'), "'.$row['message'].'"));';
}
echo '</script>';
</script>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---