Answers for "convert query result to array php"

PHP
0

convert query result to array php

$result = "select * from random_table where id = 1";

$rows = [];
while($row = mysqli_fetch_array($result))
{
    $rows[] = $row;
}
Posted by: Guest on May-06-2021

Code answers related to "convert query result to array php"

Browse Popular Code Answers by Language