3.215.182.81 |    

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.032 seconds at 12.28 KB/s

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

User online
There are 2 users online.

Tags Cloud

Latest snippets
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)
STDERR
(Bash::Function)
radius
(CSS)
shadow
(CSS)
rotate
(CSS)
create_function
(JavaScript::Snippets)