$row = mysqli_fetch_array($query) size code example
Example 1: mysqli load result into array
$resource = $db->query("SELECT * FROM users WHERE userid = '".$userid."'");
while($row = $resource->fetch_array()) { $the_rows[] = $row; }
/// later use like:
// foreach($the_rows as $row)
// {
// echo $row['product'];
// }
Example 2: reset mysqli fetch_arra
mysql_data_seek($note_content, 0);