Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert query result to array php

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

$rows = [];
while($row = mysqli_fetch_array($result))
{
    $rows[] = $row;
}
 
PREVIOUS NEXT
Tagged: #convert #query #result #array #php
ADD COMMENT
Topic
Name
4+7 =