Pdostatement Setattribute
# PDOStatement::setAttribute
[PHP PDO Reference](#)
PDOStatement::setAttribute β Sets an attribute on the statement (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, there are no generic attributes; only driver-specific attributes:
* _PDO::ATTR_CURSOR_NAME_ (Firebird and ODBC specific): Sets the cursor name for _UPDATE ... WHERE CURRENT OF_.
* * *
## Return Values
Returns TRUE on success or FALSE on failure.
* * PHP PDO Reference](#)
YouTip