Adam 2009-01-30
Documentation » Databasecms_db_insert
Executes SQL INSERT inserting new row into specified table and returns the ID of the row For nodes it finds and prepares new ID hash using parent's ID specified inside $items[id]
array cms_db_insert( string $table, array $items [, $options = O_DB_LOCK] )
Parameters
- string $table Table to select from
- array $items Fields to insert in the form of array fieldname => value
- mixed $options
Constants
- O_DB_LOCK
- O_DB_AUTO_NAME
Returns
- array ID for the new node
- int ID for the new user
Last edited 2009-02-24 16:40:27
