xPDO.exec
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::exec¶
Executes an SQL statement that does not return a result set, such as INSERT, UPDATE, DELETE or DDL. Returns the number of affected rows, or false on failure.
Syntax¶
integer|boolean exec (string $query)
Example¶
$affected = $xpdo->exec("UPDATE my_table SET active = 0 WHERE id = 42");
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










