PDO :: setAttribute

Share this…Facebook0TwitterLinkedinPrint Post Views: 255 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: 312 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 […]

PDO :: quote

Share this…Facebook0TwitterLinkedinPrint Post Views: 329 PDO::quote — Quotes a string for use in a query Description public string PDO::quote ( string $string [, int $parameter_type = PDO::PARAM_STR ] ) PDO::quote() places quotes around the input string (if required) and escapes special characters within the input string, using a quoting style appropriate to the underlying driver. If you are using this function to build SQL statements, you are strongly recommended to […]

PHP: PDOException

Share this…Facebook0TwitterLinkedinPrint Post Views: 342 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: 48 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, […]