MySQL获取结果

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL获取结果相关的知识,希望对你有一定的参考价值。

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. }

以上是关于MySQL获取结果的主要内容,如果未能解决你的问题,请参考以下文章