📅  最后修改于: 2022-03-11 14:54:29.480000             🧑  作者: Mango
$sql = "SELECT Lastname, Age FROM Persons ORDER BY Lastname";
$result = $mysqli -> query($sql);
while ($row = $result -> fetch_row()) {
//statements
}