header('Content-Type: text/html; charset=utf-8');
require ("bd.php");
if($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
$result = mysqli_query($link, "SELECT * FROM ymapapiv2_markers_cat");
if(mysqli_num_rows($result)>0)
{
while ($mar = mysqli_fetch_array($result))
{
$json = array(icontext=>$mar['iconText'], hinttext=>$mar['hintText'], balloontext=>$mar['balloonText'], styleplacemark=>$mar['stylePlacemark'], lat=>$mar['lat'], lon=>$mar['lon']);
markers[] = $json;
}
}
$points = array(markers=>$markers);
echo json_encode($points);
}
我收到此错误,我该怎么办?
:41.343721 2017] [:error] [pid 1850] [client 192.168.137.1:50094] PHP 注意:使用 tant icontext - 在 /home/coder/samba/public_htm1/watch1ist.loca1/map-vivocatd第 13 行的 .php,referer: watch 1ist.local
:41.343738 2017] [:error] [pid 1850] [client 192.168.137.1:500941 PHP 通知:在 /home/coder/samba/public_htm1/watch1ist.loca1/php/vivodpointsmap-cat.php 上取消 rext : 看 1ist.local
:41.343746 20171 [:错误![pid 1850] [client 192.168.137.1:500941 PHP 注意:使用 tant 提示文本 - 在第 13 行的 /home/coder/samba/public_htm1/watch1ist.loca1/php/vivodpointsmap-cat.php 中使用 tant 提示文本,参考:watch 1ist.local
:41.343753 20171 [:错误![pid 1850] [client 192.168.137.1:500941 PHP 注意:在第 13 行的 /home/coder/samba/public_htm1/watch1ist.loca1/php/vivodpointsmap-cat.php 中使用 tant 气球文本 - 假设为 'balloontext',参考:watch 1ist.local
:41.343760 20171 [:错误![pid 1850] [client 192.168.137.1:500941 PHP 注意:使用 tant styleplacemark - 在第 13 行的 /home/coder/samba/public_htm1/watch1ist.loca1/php/vivodpointsmap-cat.php 中假定为“styleplacemark”,参考:watch 1ist.local
:41.343767 20171 [:错误![pid 1850] [client 192.168.137.1:500941 PHP Notice: Unde ;Placemark in /home/coder/samba/public_htm1/watch1ist.loca1/php/vivodpointsmap-cat.php on line 13,referer: watch1ist.local
:41.343775 20171 [:错误![pid 1850] [client 192.168.137.1:500941 PHP 注意:在第 13 行的 /home/coder/samba/public_htm1/watch1ist.loca1/php/vivodpointsmap-cat.php 中使用 tant lat - 假定为 'lat',参考:watch1ist 。当地的
:41.343783 20171 [:错误![pid 1850] [client 192.168.137.1:500941 PHP 注意:使用 tant Ion - 在第 13 行的 /home/coder/samba/public_htm1/watch1ist.loca1/php/vivodpointsmap-cat.php 中使用 tant Ion,参考:watch1ist 。当地的
:41.343794 20171 [:错误![pid 18501 [客户端 192.168.137.1:50094!PHP 注意:使用 tant 标记 - 在第 19 行的 /home/coder/samba/public_htm1/watch1ist.loca1/vivodpointsmap-cat.php 中假定为“标记”,引用:watch1ist.local
您没有将 for 的键括$json
在"
引号中。应该是这样的:
$json = array('icontext'=>$mar['iconText'], 'hinttext'=>$mar['hintText'], 'balloontext'=>$mar['balloonText'], 'styleplacemark'=>$mar['stylePlacemark'], 'lat'=>$mar['lat'], 'lon'=>$mar['lon']);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句