Method: db::update

Runs an UPDATE query

Info

Syntax

db::update($table, $input, $where)

Parameters

Return (mixed)

The number of affected rows or an error response

Example


db::update('user', array('username' => 'peter'), array('id' => 1));
// replaces the username of user 1 with peter