method update documentation in bbn\Db\Languages\Sql

Updates row(s) in a table.

$db->update( "table_users", [ ['name' => 'Frank'], ['surname' => 'Red'] ], ['id' => '127'] );

function($table, array $values = NULL, array $where = NULL, bool $ignore = false) { $cfg = \is_array($table) ? $table : [ 'tables' => [$table], 'where' => $where, 'fields' => $values, 'ignore' => $ignore ]; $cfg['kind'] = 'UPDATE'; return $this->_exec($cfg); }

Updates row(s) in a table. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.