ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:fetchinto

This is an old revision of the document!


fetchInto

Syntax
bool fetchInto(
     &$recordArray
     )

Description

The PEAR compatible function fetchInto() retrieves a recordset into an array. The array must be passed by reference into the method.


Usage

/*
 * database connection assumed
 */
$SQL = "SELECT * FROM act";
$result = $db->execute($SQL);
while (!$result->EOF){
    $arr = array();
    $result->fetchInto(&$arr);
 
    print_r($arr);
}

PEAR compatibility

This command is no longer supported in the PEAR mdb module.

v5/reference/connection/fetchinto.1452820800.txt.gz · Last modified: 2017/04/21 11:35 (external edit)