interface Result

Database query result set.

Methods

array|null
fetch()

Fetches the next row from the result set as an associative array.

array|null
fetchList()

Fetches the next row from the result set as an indexed array.

int
getColumnCount()

Returns the number of columns in the result set.

int
getRowCount()

Returns the number of rows in the result set or number of affected rows

array
getColumnsInfo()

Returns metadata for all columns in a result set.

void
free()

Frees the result set.

Details

at line 19
array|null fetch()

Fetches the next row from the result set as an associative array.

Return Value

array|null

at line 22
array|null fetchList()

Fetches the next row from the result set as an indexed array.

Return Value

array|null

at line 25
int getColumnCount()

Returns the number of columns in the result set.

Return Value

int

at line 28
int getRowCount()

Returns the number of rows in the result set or number of affected rows

Return Value

int

at line 34
array getColumnsInfo()

Returns metadata for all columns in a result set.

Return Value

array

at line 37
void free()

Frees the result set.

Return Value

void