Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

fetch row in php

$sql = "SELECT Lastname, Age FROM Persons ORDER BY Lastname";
$result = $mysqli -> query($sql);
while ($row = $result -> fetch_row()) {
    //statements
  }
 
PREVIOUS NEXT
Tagged: #fetch #row #php
ADD COMMENT
Topic
Name
5+2 =