为什么没有意义错误这是我的PHP文件有错误我不知道为什么,相同的代码在其他php文件中运行良好,这里给我这个错误
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
var geocoder= new google.maps.Geocoder(); //need for geocoding of latlng by Address
<?php for ($i = 1; $i <= count($data); $i++) { ?>
i = i+1;
var address = '<?php echo $address[$i].",".$city[$i] ?>';
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var position = results[0].geometry.location;
} elseif {status == google.maps.GeocoderStatus.OVER_QUERY_LIMIT) {
alert("Hello World!");
} else {
alert("Geocode was not successful for the following reason: " + status);
}
alert("Hello World!");
`
`