在json_encode添加第二个参数即可
while ($rows=mysqli_fetch_assoc($result)) {
$array[] = $rows;
}
$res = json_encode(
在json_encode添加第二个参数即可
while ($rows=mysqli_fetch_assoc($result)) {
$array[] = $rows;
}
$res = json_encode(