Answers for "php sql fetch one 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

Browse Popular Code Answers by Language