Answers for "how to access row data from sql in php"

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

Code answers related to "how to access row data from sql in php"

Browse Popular Code Answers by Language