Easy Tutorial
❮ Func Array Merge Php Filtered Unserialize ❯

PDOStatement::setAttribute

PHP PDO Reference Manual

PDOStatement::setAttribute — Set a statement attribute (PHP 5 >= 5.1.0, PECL pdo >= 0.2.0)


Description

Syntax

bool PDOStatement::setAttribute ( int $attribute , mixed $value )

Sets an attribute on the statement. Currently, no generic attributes can be set, only driver-specific attributes:

-

PDO::ATTR_CURSOR_NAME (Firebird and ODBC feature): Sets the cursor name for UPDATE ... WHERE CURRENT OF.


Return Value

Returns TRUE on success, or FALSE on failure.


PHP PDO Reference Manual

❮ Func Array Merge Php Filtered Unserialize ❯