“NetworkError:php文件上的500内部服务器错误

时间:2014-08-08 11:00:24

标签: javascript php jquery ajax

为什么没有意义错误这是我的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!");

    `

`

0 个答案:

没有答案