public function update_string($table, $data, $where)
{
if (empty($where)) {
return FALSE;
}
$this->where($where);
$fields = array();
foreach ($data as $key => $val) {
$fields[$this->protect_identifiers($key)] = $this->escape($val);
}
$sql = $this->_update($this->protect_identifiers($table, TRUE, NULL, FALSE), $fields);
$this->_reset_write();
return $sql;
}