JSON给了我null

时间:2015-06-21 20:45:19

标签: php android json

在这个查询中需要帮助任何人都可以为我纠正它JSON给我null 和剂量不解析任何东西到Android应用程序它打印我在neteans测试时所需的值,但不解析值到android

<?php


    $nme = (isset($_REQUEST['place_name']) ? $_REQUEST['place_name'] : null);

    $con = mysql_connect("localhost","root","");

    $db=mysql_select_db("around2",$con);

    $result=mysql_query("ٍٍٍٍٍٍSelect 
    historical_places.city_code , historical_places.address, historical_places.information, historical_places.place_code
    ,image.image_serial ,image.images
    ,videos.video_serial ,videos.video_url
    FROM historical_places 
    INNER JOIN image 
    ON image.place_code=historical_places.place_code 
    INNER JOIN videos 
    ON videos.place_code=historical_places.place_code 
    WHERE historical_places.place_name='$nme'");


    while($row = mysql_fetch_assoc($result))
    {
    $output[]=$row; 
    } 

    print(json_encode($output)); 
    mysql_close(); 
    ?>

1 个答案:

答案 0 :(得分:1)

我不确定这个问题与android有什么关系,但这不可能是正确的:

"ٍٍٍٍSelect