Put result in array


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.