Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.
ratajs edited this page Feb 13, 2017 · 1 revision

Insert

This method inserts data into table. Syntax:
$object->insert(string $table, array $values[, array $cols = array()[, bool $retId = false]])
Object
- Object of extension.
Table
- Table name.
Values
- Array with values of rows in right order.
Cols
- Array with elements which’re going to insert. If it’s array() all columns’re going to insert.
RetId
- If it’s TRUE, this method returns value of column with auto_increment feature.
Return value: If retId is TRUE, this method returns value of column with auto_increment.
Clone this wiki locally