Adam 2009-01-30
Documentation » Databasecms_db_update
Executes SQL UPDATE with given constraint and specified fields to update
bool cms_db_update( string $table, array $items, array $constraint [, int $options = O_UPDATE_ALL] )
Parameters
- string $table Table to select from
- array $items Fields to update in the form of array fieldname => value
- array $constraint Constraints in the form of array fieldname => reqvalue
- int $options How to update `updated`, `last` fields
Constants
- O_UPDATE_UPDATED
- O_UPDATE_LAST
- O_UPDATE_ALL
Returns
- bool Whether the action was successful (should be always TRUE)
Last edited 2009-02-24 16:40:27
