📅  最后修改于: 2022-03-11 14:54:08.793000             🧑  作者: Mango
$sth = mysqli_query($conn, "SELECT ...");
$rows = array();
while($r = mysqli_fetch_assoc($sth)) {
$rows[] = $r;
}
print json_encode($rows);