Answers for "php fetch row"

PHP
1

fetch row in php

$sql = "SELECT Lastname, Age FROM Persons ORDER BY Lastname";
$result = $mysqli -> query($sql);
while ($row = $result -> fetch_row()) {
    //statements
  }
Posted by: Guest on June-11-2021
0

php mysqli fetch single row

$row = $result->fetch_assoc();
Posted by: Guest on November-14-2020

Browse Popular Code Answers by Language