問題があります。GoogleMap API を使用して情報ウィンドウにデータを表示したいのですが、データベースからクエリを実行し、php スクリプトで呼び出して Javascript テキストを保存します。これが私のコードです
var contentString = '<b>Bermuda Triangle Polygon</b><br>';
var infoo = <?php
include_once("koneksi.php");
$sql3="SELECT a.Informasi from asset a where ID_Asset='AST01'";
$result3 = mysql_query($sql3);
$data3 = mysql_fetch_row($result3);
Print $data3[0];
?>;
contentString += 'Informasi: <br>' + infoo + '<br>';
infoWindow.setContent(contentString);
infoWindow.setPosition(event.latLng);
infoWindow.open(map);
数値データを返すクエリを変更すると機能しますが、テキストまたは文字列データを返すと機能しません。誰でもヘルプ