📌  相关文章
📜  mysqli fetch row assoc - PHP 代码示例

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

代码示例1
$sql = "SELECT Lastname, Age FROM Persons ORDER BY Lastname";
$result = mysqli_query($con, $sql);


/*MYSQLI_ASSOC
MYSQLI_NUM (this is default)
MYSQLI_BOTH
  */
// Fetch all
mysqli_fetch_all($result, MYSQLI_ASSOC);