Posted By

elemint on 02/21/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jamesming
pezland


Put result in array


 / Published in: PHP
 

  1. // Put result in array
  2. for($i = 0; $array[$i] = mysqli_fetch_assoc($result); $i++) ;
  3. array_pop($array); // delete the last one because this will always be empty.

Report this snippet  

You need to login to post a comment.