downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mysqli_result->current_field> <mysqli_stmt::store_result
Last updated: Fri, 14 Aug 2009

view this page in

La classe MySQLi_Result

Introduction

Représente le jeu de résultats obtenu depuis une requête.

Synopsis de la classe

MySQLi_Result
MySQLi_Result {
/* Propriétés */
int $current_field ;
int $field_count;
array $lengths;
int $num_rows;
/* Méthodes */
int mysqli_field_tell ( mysqli_result $result )
bool mysqli_result::data_seek ( int $offset )
mixed mysqli_result::fetch_all ([ int $resulttype ] )
mixed mysqli_result::fetch_array ([ int $resulttype ] )
object mysqli_result::fetch_field_direct ( int $fieldnr )
object mysqli_result::fetch_object ([ string $class_name [, array $params ]] )
mixed mysqli_result::fetch_row ( void )
int mysqli_num_fields ( mysqli_result $result )
bool mysqli_result::field_seek ( int $fieldnr )
void mysqli_result::free ( void )
array mysqli_fetch_lengths ( mysqli_result $result )
int mysqli_num_rows ( mysqli_result $result )
}

Sommaire



add a note add a note User Contributed Notes
MySQLi_Result
blar at blar dot de
08-Jan-2009 10:47
Extending the MySQLi_Result

<?php

class Database_MySQLi extends MySQLi
{
    public function
query($query)
    {
       
$this->real_query($query);
        return new
Database_MySQLi_Result($this);
    }
}

class
Database_MySQLi_Result extends MySQLi_Result
{
    public function
fetch()
    {
        return
$this->fetch_assoc();
    }

    public function
fetchAll()
    {
       
$rows = array();
        while(
$row = $this->fetch())
        {
           
$rows[] = $row;
        }
        return
$rows;
    }
}

?>

mysqli_result->current_field> <mysqli_stmt::store_result
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites