array fetchArray(
[int
$result_type = MYSQL_BOTH]
)
|
|
Fetch the result of the query
Parameters:
|
int |
$result_type: |
The optional argument result_type is a constant and can take the following values: MYSQL_ASSOC, MYSQL_NUM, and MYSQL_BOTH. |
API Tags:
| Return: | Returns the contents of the resultset, returns FALSE when all have been returned |
object Returns fetchAssoc(
)
|
|
Fetch the result of the query
API Tags:
| Return: | the contents of the resultset, returns FALSE when all have been returned |
object Returns fetchObject(
[object
$result_type = MYSQL_ASSOC]
)
|
|
Fetch the result of the query
Parameters:
|
object |
$result_type: |
The optional argument result_type is a constant and can take the following values: MYSQL_ASSOC, MYSQL_NUM, and MYSQL_BOTH. |
API Tags:
| Return: | the contents of the resultset, returns FALSE when all have been returned |
object Returns fetchRow(
[object
$result = '']
)
|
|
Fetch one row of data from the result associated with the specified result identifier
Parameters:
|
object |
$result: |
The result identifier or NULL |
API Tags:
| Return: | an array that corresponds to the fetched row, or FALSE if there are no more rows |
Get the affected rows
API Tags:
| Return: | The number of rows affected by the query |
String getFieldFlags(
int
$offset
)
|
|
Get the flags associated with the specified field in a result
Parameters:
|
int |
$offset: |
The field offset to fetch |
API Tags:
| Return: | Returns the field flags of the specified field or FALSE on failure The flags are reported as a single word per flag separated by a single space, so that you can split the returned value using explode(). |
int getFieldLen(
int
$offset
)
|
|
Get the length of the specified field
Parameters:
|
int |
$offset: |
The field offset to fetch |
API Tags:
| Return: | Returns the length of the specified field |
String getFieldName(
int
$offset
)
|
|
Get the name of the specified field in a result
Parameters:
|
int |
$offset: |
The field offset to fetch |
API Tags:
| Return: | Returns the name of the specified field index |
String getFieldTable(
String
$offset
)
|
|
Get name of the table the specified field is in
Parameters:
|
String |
$offset: |
The field offset to fetch |
API Tags:
| Return: | Returns the name of the table that the specifed field is in |
String getFieldType(
int
$offset
)
|
|
Get the type of the specified field in a result
Parameters:
|
int |
$offset: |
The field offset to fetch |
API Tags:
| Return: | Returns the field type and will be one of "int", "real", "string", "blob", ... |
Return the ID generated for the INSERT statement for an AUTO_INCREMENT type
API Tags:
| Return: | Return the ID generated by the INSERT query |
Returns the number of fields in the result
API Tags:
| Return: | The number of fields in the result |
Redefined in descendants as:
Get the number of rows
API Tags:
| Return: | The number of rows returned by the query |
boolean query(
String
$sql
)
|
|
Execute the specified query. SELECT, UPDATE, INSERT etc...
Return false or a resource identifier (for SELECT,SHOW,EXPLAIN or DESCRIBE, ...)
Parameters:
|
String |
$sql: |
The sql query to execute |
API Tags:
| Return: | Returns TRUE (INSERT, UPDATE, DELETE, ...) |