$arr = array();
$arr
=
array
();
$rs
= mysql_query(
"select * from `table`"
);
while
(
$row
= mysql_fetch_array(
)){
[] =
;
}
//现在数组就是二维数组了 想输出json 的话就
echo
json_encode(