Updates current objects variables into the database. if you supply it with a dataObject, as an argument, it will only update the differences between the new and old.
DataObject $original - if provided the update query will be built from the difference between the current and original dataobject.
Table 26-1. Possible PEAR_Error values
Error code | Error message | Meaning | Solution |
---|---|---|---|
DB_DATAOBJECT_ERROR_INVALIDCONFIG | "update:No table definition for $table" | ||
DB_DATAOBJECT_ERROR_NODATA | "update: No Data specifed for query $settings" |
Example 26-1. Simple fetch and update
|
Example 26-2. Resulting SQL
|
Example 26-3. Simple fetch and update
|
Example 26-4. Resulting SQL
|