有人可以帮助我,我该怎么办?,请帮忙。
$resultG = mysqli_query($db,"select * from Rubrica where ID_Dispositivo = '$UserID' ");
$response = array();
while($row = mysqli_fetch_assoc($resultG)){
$response[] = $row;
}
echo json_encode($response);
响应是D / doInBackground(Resp):[]
为什么是null ????
答案 0 :(得分:0)
mysqli_fetch_assoc返回与获取的行对应的字符串关联数组。尝试改变
{{1}}