xPDO.setAttribute
Last updated not available | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$185 per month—let's make that $500!
Learn morexPDO::setAttribute¶
Sets a PDO connection attribute, such as PDO::ATTR_ERRMODE or PDO::ATTR_DEFAULT_FETCH_MODE. Returns true on success, false on failure.
Syntax¶
boolean setAttribute (integer $attribute, mixed $value)
Example¶
$xpdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$185 per month—let's make that $500!
Learn more










