3.16.83.150 |    

Navigation

Google Advertisement

mysql_fetch_all
  1. // ************************************************************
  2. // array mysql_fetch_all( query:resource [, type:string (default:'assoc' | 'row')] )
  3.  
  4. function mysql_fetch_all( $query, $type = 'assoc' ) {
  5.  
  6. (array) $result = array();
  7. (string) $type = $type === 'assoc' ? $type : 'row';
  8. eval( 'while( @$r = mysql_fetch_'.$type.'( $query ) ) array_push( $result, $r );' );
  9. return $result;
  10.  
  11. }
Parsed in 0.010 seconds at 39.64 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 2 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)