Mysql_Result Constructor
Constructor assigns resources to member attributes.
Parameters:
|
resource |
$handle: |
handle (resource to MySQL connection) |
|
mixed |
$result: |
result (result returned by MySQL) |
API Tags:
void dataSeek(
[int
$row_number = 0]
)
|
|
Moves internal result pointer to specified row
Parameters:
|
int |
$row_number: |
row_number (row number to position internal pointer) |
API Tags:
| Access: | public |
| See: | mysql_data_seek |
Information Tags:
Returns an array of all rows in the current result set.
Array returned is a numerically indexed array, each element of that array is a row from the result set. Each row is stored as an associative array.
API Tags:
array fetchAllColumnAsIndex(
string
$column
)
|
|
Returns an array of all rows returned in a result set using a column value as the array's index.
Using the column name sent as the parameter, method returns all rows in the current result set indexed by the value of the column. When using this method you must ensure the column used for index IS UNIQUE.
Example use would be for creating an array indexed by primary id.
Parameters:
|
string |
$column: |
column (column name) |
API Tags:
Fetch row as an associative array from result set
Returns an associative array of the current row in the MySQL result set and advances the internal pointer one row. If the end of the result set is reached method returns boolean FALSE.
API Tags:
| Return: | assoc. array or boolean FALSE |
| Access: | public |
| See: | mysql_fetch_assoc |
Information Tags:
Returns last insert id.
Return the last insert id generated by the current MySQL connection.
API Tags:
| Access: | public |
| See: | mysql_insert_id |
Information Tags:
int fetchNumAffectedRows(
)
|
|
Return the number of rows affected by previous statement
Returns the number of rows affected by the last INSERT, UPDATE, REPLACE or DELETE statement.
API Tags:
| Access: | public |
| See: | mysql_affected_rows |
Information Tags:
Returns number of rows in the current MySQL data set.
API Tags:
| Access: | public |
| See: | mysql_num_rows |
Information Tags:
Fetch row as a numerically indexed array from result set
Returns a numerically indexed array of the current row in the MySQL result set and advances the internal pointer one row. If the end of the result set is reached method returns boolean FALSE.
API Tags:
| Return: | numerical array or boolean FALSE |
| Access: | public |
| See: | mysql_fetch_row |
Information Tags: