/ Published in: PHP
Here is the correct way to turn your mysql results into an array. Forget the other nonsense of useless code. Why type out this long code: "for($i = 0; $array[$i] = mysqlifetchassoc($result); $i++) ;" when you can accomplish the same thing with much less code.
Expand |
Embed | Plain Text
while($rows[] = mysqli_fetch_assoc($result));
Comments
Subscribe to comments
You need to login to post a comment.

while ($row = mysqlifetchassoc($result) && $rows[] = $row);