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' ) ); |