Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

mysqli fetch row assoc

$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);
 
PREVIOUS NEXT
Tagged: #mysqli #fetch #row #assoc
ADD COMMENT
Topic
Name
2+7 =