public function updateInDatabase($table, array $data, array $criteria = [])
    {
        $query = $this->_getDriver()->update($table, $data, $criteria);
        $parameters = array_merge(array_values($data), array_values($criteria));
        $this->debugSection('Query', $query);
        if (!empty($parameters)) {
            $this->debugSection('Parameters', $parameters);
        }
        $this->_getDriver()->executeQuery($query, $parameters);
    }
public function updateInDatabase($table, array $data, array $criteria = [])
    {
        $query = $this->_getDriver()->update($table, $data, $criteria);
        $parameters = array_merge(array_values($data), array_values($criteria));
        $this->debugSection('Query', $query);
        if (!empty($parameters)) {
            $this->debugSection('Parameters', $parameters);
        }
        $this->_getDriver()->executeQuery($query, $parameters);
    }
public function updateInDatabase ( $ table , array $ data , array $ criteria = [ ] ) { $ query = $ this -> _getDriver ( ) -> update ( $ table , $ data , $ criteria ) ; $ parameters = array_merge ( array_values ( $ data ) , array_values ( $ criteria ) ) ; $ this -> debugSection ( 'Query' , $ query ) ; if ( ! empty ( $ parameters ) ) { $ this -> debugSection ( 'Parameters' , $ parameters ) ; } $ this -> _getDriver ( ) -> executeQuery ( $ query , $ parameters ) ; }
Update an SQL record into a database.

```php
<?php
$I->updateInDatabase('users', array('isAdmin' => true), array('email' => 'miles@davis.com'));
?>
```

@param string $table
@param array $data
@param array $criteria
Update an SQL record into a database .