SQLUpdateInsert
Материал из MajorDoMo инфо
Описание
SQLUpdateInsert($table, &$record, $ndx = 'ID'); -- Execute SQL UPDATE or INSERT query for one record
If ID field is defined record will be updated else it will be inserted @param string $table Table to update @param array $record Record to update @param mixed $ndx Update or insert by this key (default ID) @global object mysql database object @return int
SQLInsertUpdate($table, &$record, $ndx = 'ID'); Аналог