Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
en:create:functions:dbset [24.01.2015 14:15] – [dbSet()] alexander.ritter | en:create:functions:dbset [24.01.2015 14:17] – [dbSet()] alexander.ritter |
---|
* ''false'' -- Database entry is deleted, if it exists | * ''false'' -- Database entry is deleted, if it exists |
* <string> -- If text is specified, this is saved as the first (and only) element for the key | * <string> -- If text is specified, this is saved as the first (and only) element for the key |
* <array> -- If an array is used as //data//, all elements will then be saved as the entry for the key. | * <array> -- If an array is submitted as //data//, all elements will be saved as the entry for the key. |
| |
**Note:** Each entry in the database has a timestamp with the date and time of the most recent change. By updating with ''dbSet()'', the timestamp will also be updated (even when the data stays the same!). If you only want to update the timestamp, use ''[[:en:create:functions:dbtouch|dbTouch]]''. | **Note:** Each entry in the database has a timestamp with the date and time of the most recent change. By updating with ''dbSet()'', the timestamp will also be updated (even when the data stays the same!). If you only want to update the timestamp, use ''[[:en:create:functions:dbtouch|dbTouch]]''. |