Description

int update(string $table, array $values, string $where = null, mixed $parameters = array())

Builds a query for updating records

Parameters

string $table
The table to run the UPDATE-statement on.
array $values
The values to update, use the key(s) as columnnames.
string $where = null
The WHERE-clause.
mixed $parameters = array()
The parameters that will be used in the query.

Return values

int - The number of affected rows.

Comment