Reference - Insert

 

DBE_Database :: insert

Inserts a new record (accepts auto-increment fields)

 

mixed insert ( string  $iTable,
               array   $aRecord,
               string  $iAutoFieldName = NULL )

 

Parameters :

$iTable    Table name
$aRecord    Record to insert as an array of values
$iAutoFieldName    (optionnal) if set to a field name, auto-increment will be activated on this field (numeric values only)
(default = no auto-increment)

 

Return :

with auto-increment set: auto-incremented field value on success, otherwise FALSE
without auto-increment: TRUE on success, otherwise FALSE

 

 

» Reference