| [ Index ] |
PHP Cross Reference of MyBB 1.8.39 |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 245 lines (5 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
dbpdoEngine:: (12 methods):
__construct()
query()
fetch_array()
seek()
num_rows()
insert_id()
error_number()
error_string()
affected_rows()
num_fields()
escape_string()
get_attribute()
Class: dbpdoEngine - X-Ref
MyBB 1.8| __construct($dsn, $username="", $password="", $driver_options=array() X-Ref |
| Connect to the database. param: string $dsn The database DSN. param: string $username The database username. (depends on DSN) param: string $password The database user's password. (depends on DSN) param: array $driver_options The databases driver options (optional) |
| query($string) X-Ref |
| Query the database. param: string $string The query SQL. return: PDOStatement The query data. |
| fetch_array($query, $resulttype=PDO::FETCH_BOTH) X-Ref |
| Return a result array for a query. param: PDOStatement $query The query resource. param: int $resulttype One of PDO's constants: FETCH_ASSOC, FETCH_BOUND, FETCH_CLASS, FETCH_INTO, FETCH_LAZY, FETCH_NAMED, FETCH_NUM, FETCH_OBJ or FETCH_BOTH return: array The array of results. |
| seek($query, $row) X-Ref |
| Moves internal row pointer to the next row param: PDOStatement $query The query resource. param: int $row The pointer to move the row to. |
| num_rows($query) X-Ref |
| Return the number of rows resulting from a query. param: PDOStatement $query The query resource. return: int The number of rows in the result. |
| insert_id($name=null) X-Ref |
| Return the last id number of inserted data. param: string|null $name The name of the insert id to check. (Optional) return: int The id number. |
| error_number($query) X-Ref |
| Return an error number. param: PDOStatement $query The query resource. return: int The error number of the current error. |
| error_string($query) X-Ref |
| Return an error string. param: PDOStatement $query The query resource. return: array The error string of the current error. |
| affected_rows($query) X-Ref |
| Returns the number of affected rows in a query. param: PDOStatement $query return: int The number of affected rows. |
| num_fields($query) X-Ref |
| Return the number of fields. param: PDOStatement $query The query resource. return: int The number of fields. |
| escape_string($string) X-Ref |
| Escape a string according to the pdo escape format. param: string $string The string to be escaped. return: string The escaped string. |
| get_attribute($attribute) X-Ref |
| Return a selected attribute param: string $attribute The attribute to check. return: string The value of the attribute. |
| 2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup | Cross-referenced by PHPXref |