0
내가 구글에서 정보 창구글 맵 정보 창에 데이터베이스에서 데이터를 가져 오는 방법을
var infoWindow = new google.maps.InfoWindow({
position: latlng,
content: 'Hello, world'
});
을 매핑하고 난 데이터베이스에서 주소를 검색 할 수있는 PHP 코드를 표시하려면이 코드가 있습니다.
<?php
mysql_connect("localhost", "root", "root") or die (mysql_error());
mysql_select_db("theaterdb") or die(mysql_error());
$strSQL =("SELECT address FROM theaters WHERE theater_name='" . mysql_real_escape_string($_POST['course']) . "'");
$rs = mysql_query($strSQL);
while($row = mysql_fetch_array($rs)) {
echo "<b>Theater Address:</b><br>";
echo $row['address'] . "<br /><br />";
}
mysql_close();
?>
지금 난의이 작업을 수행하는 콘텐츠 field..how를 정보창을 데이터베이스에서 주소를 얻을 필요가? 아무도 도와 드릴 수 있습니다 .... 미리 감사드립니다.