MySQL Fetch Results


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

Fetch the results of a MySQL query.


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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.