The SelectQueryResult interface provides the functionality common to a SELECT query result.
The SelectQueryResult interface provides the functionality common to a SELECT query result. For example, you can fetch associative arrays, advance the current row position, etc.
Located in /harmoni/core/DBHandler/SelectQueryResult.interface.php (line 44)
QueryResultInterface | --SelectQueryResultInterface
Advances the current row position.
Advances the current row position. If there are no more rows left, then it returns
.
- false
Binds the field specified by the first argument to the variable given as
the second argument. The method stores a reference to the variable represented by the second argument; whenever a new row is fetched, the value of the field in the new row will be updated in the referenced variable. This enables the user to avoid unnecessary calls to
or
.
- field()
, or an integer (less than
) corresponding to the index of the field.
Returns the specified field value in the current row.
Returns the specified field value in the current row.
Returns an array that stores the current row in the result. The data can be accessed through associative indices as well as numeric indices.
Returns an indexed array of all field names that were selected.
Returns an indexed array of all field names that were selected.
Get the number of fields that were selected by the SELECT query.
Get the number of fields that were selected by the SELECT query.
Returns the resource id for this SELECT query.
Returns the resource id for this SELECT query. The resource id is returned by the mysql_query() function.
Indicates if there are any remaining rows returned by the SELECT query.
Indicates if there are any remaining rows returned by the SELECT query including the current row.
Indicates if there are any remaining rows returned by the SELECT query.
Indicates if there are any remaining rows returned by the SELECT query including the current row.
Moves the internal row pointer to the specified position. The range of possible values is
.
- 0 - (getNumberOfRows()-1)
Returns an array that stores the current row in the result and advances to the next row. The data can be accessed through associative indices as well as numeric indices.
Unbinds the field that has been bound by
.
- bindField()
, or an integer (less than
) corresponding to the index of the field.
Inherited From QueryResultInterface
QueryResultInterface::getNumberOfRows()
Documentation generated on Wed, 19 Sep 2007 10:26:23 -0400 by phpDocumentor 1.3.0RC3