Habari\DB::update PHP Method

update() public static method

function update Updates any record that matches the specific criteria A new row is inserted if no existing record matches the criteria
public static update ( string $table, array $fieldvalues, array $keyfields ) : boolean
$table string Table to update
$fieldvalues array Associative array of field values to set
$keyfields array Associative array of field values to match
return boolean True on success, false if not DB::update( 'mytable', array( 'fieldname' => 'newvalue' ), array( 'fieldname' => 'value' ) );
    public static function update($table, $fieldvalues, $keyfields)
    {
        return DB::instance()->connection->update($table, $fieldvalues, $keyfields);
    }