Interface

SelectQueryResult

Package: IO\DB Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Loic ROUCHON horn@phpboost.com Version: PHPBoost 5.2 - last update: 2014 12 22 Since: PHPBoost 3.0 - 2009 11 02 Located at: io/db/SelectQueryResult.class.php

this class encapsulate a query result set usage is:

foreach ($my_query_result as $result) {
       // do something with the $result
}
SelectQueryResult implements QueryResult, iterator
Indirect known implementers
MySQLSelectQueryResult, PDOSelectQueryResult
Methods summary
public
# set_fetch_mode( $fetch_mode )
public integer
# get_rows_count( )

returns the number of returned rows by this query

public
# has_next( )
public
# fetch( )
public
# dispose( )

free the resource. If not done manually, this is done in the destructor

Methods inherited from QueryResult
get_parameters(), get_query()
Constants summary
integer FETCH_NUM
# 0x00
integer FETCH_ASSOC
# 0x01