PDO :: setAttribute

Share this…Facebook0TwitterLinkedinPrint Post Views: 1,525 PDO :: setAttribute — Set an attribute Description public bool PDO::setAttribute ( int $attribute , mixed $value ) Sets an attribute on the database handle. Some of the available generic attributes are listed below; some drivers may make use of additional driver specific attributes. PDO::ATTR_CASE: Force column names to a specific case. PDO::CASE_LOWER: Force column names to lower case. PDO::CASE_NATURAL: Leave […]

PDO :: rollBack

Share this…Facebook0TwitterLinkedinPrint Post Views: 1,920 PDO :: rollBack — Rolls back a transaction Description public bool PDO::rollBack ( void ) Rolls back the current transaction, as initiated by PDO::beginTransaction(). If the database was set to autocommit mode, this function will restore autocommit mode after it has rolled back the transaction. Some databases, including MySQL, automatically issue an implicit COMMIT when a database definition […]

PHP: PDOException

Share this…Facebook0TwitterLinkedinPrint Post Views: 2,014 PHP: PDOException Introduction Represents an error raised by PDO. You should not throw a PDOException from your own code. See Exceptions for more information about Exceptions in PHP. Class synopsis PDOException extends RuntimeException { /* Properties */ public array $errorInfo ; protected string $code ; /* Inherited properties */ protected string $message ; protected int $code ; protected string $file ; protected int $line ; /* Inherited methods */ final public string Exception::getMessage ( void ) final public Throwable Exception::getPrevious ( void ) final public mixed Exception::getCode ( void ) final public string Exception::getFile ( void ) final public int Exception::getLine ( void ) final public array Exception::getTrace ( void ) […]

PDO :: query

Share this…Facebook0TwitterLinkedinPrint Post Views: 362 PDO::query — Executes an SQL statement, returning a result set as a PDOStatement object Description public PDOStatement PDO::query ( string $statement ) public PDOStatement PDO::query ( string $statement , int $PDO::FETCH_COLUMN , int $colno ) public PDOStatement PDO::query ( string $statement , int $PDO::FETCH_CLASS , string $classname , array $ctorargs ) public PDOStatement PDO::query ( string $statement , int $PDO::FETCH_INTO , object $object ) PDO::query() executes an SQL statement in a single function call, returning the result set (if any) returned by the statement as a PDOStatement object. For a query that you need to issue multiple times, […]

PDO :: prepare

Share this…Facebook0TwitterLinkedinPrint Post Views: 1,577 PDO::prepare — Prepares a statement for execution and returns a statement object Description public PDOStatement PDO::prepare ( string $statement [, array $driver_options = array() ] ) Prepares an SQL statement to be executed by the PDOStatement::execute() method. The SQL statement can contain zero or more named (:name) or question mark (?) parameter markers for which real values will be substituted when the statement is […]