【发布时间】:2011-09-02 01:53:38
【问题描述】:
我从查询中返回两行,我在 phpadmin 中对其进行了测试。
在萤火虫中我只能看到一行的数据。
有什么我看不到的问题?
$data = mysql_fetch_assoc($r);
}
}
header('Content-type: application/json');
$output = array(
"check" => $check,
"users" => $data,
"testnumberoffrows" => $number
);
echo json_encode($output);
在ajax函数中
if( data.check ){
var user = data.users;
console.log(user);
谢谢,理查德
【问题讨论】: