Posted By

neogeek on 07/01/06


Tagged

mysql results


Versions (?)

Who likes this?

9 people have marked this snippet as a favorite

jonbaer
Fixe
n2linux
rolandog
blakeb
Phoenix
vali29
leandemon
nb109


MySQL Fetch Results


 / Published in: PHP
 

Fetch the results of a MySQL query.

  1. if (!function_exists('mysql_fetch_results')) {
  2.  
  3. function mysql_fetch_results($resource, $results = Array()) {
  4.  
  5. while($row = @mysql_fetch_assoc($resource)) { $results[] = $row; }
  6.  
  7. return $results;
  8.  
  9. }
  10.  
  11. }

Report this snippet  

You need to login to post a comment.