Méthode |
Description |
|
__construct ( array $options ) : Pdo |
Constructor |
|
bindParams ( array $params ) : Pdo |
Bind parameters to for a prepared SQL query. |
|
disconnect ( ) : void |
Close the DB connection. |
|
escape ( string $value ) : string |
Return the escaped string value. |
|
execute ( ) : void |
Execute the prepared SQL query. |
|
fetch ( ) : array |
Return the results array from the results resource. |
|
fetchResult ( ) : array |
Fetch and return the values. |
|
getDbtype ( ) : string |
Get PDO DB Type |
|
getDsn ( ) : string |
Get PDO DSN |
|
lastId ( ) : integer |
Return the auto-increment ID of the last query. |
|
numFields ( ) : integer |
Return the number of fields in the result. |
|
numRows ( ) : integer |
Return the number of rows in the result. |
|
prepare ( string $sql, array $attribs = null ) : Pdo |
Prepare a SQL query. |
|
query ( string $sql ) : void |
Execute the SQL query and create a result resource, or display the SQL error. |
|
showError ( string $code = null, array $info = null ) : void |
Throw an exception upon a database error. |
|
version ( ) : string |
Return the database version. |
|