📜  在 php 代码示例中获取行

📅  最后修改于: 2022-03-11 14:54:29.480000             🧑  作者: Mango

代码示例1
$sql = "SELECT Lastname, Age FROM Persons ORDER BY Lastname";
$result = $mysqli -> query($sql);
while ($row = $result -> fetch_row()) {
    //statements
  }