Habari\DB::insert PHP Method

insert() public static method

Inserts into the specified table values associated to the key fields
public static insert ( string $table, array $fieldvalues ) : boolean
$table string The table name
$fieldvalues array An associative array of fields and values to insert
return boolean True on success, false if not DB::insert( 'mytable', array( 'fieldname' => 'value' ) );
    public static function insert($table, $fieldvalues)
    {
        return DB::instance()->connection->insert($table, $fieldvalues);
    }