public function execute($sql, $params = array (), array $driverOptions = array ()) {
        $this->_modifyParams($sql, $params);

        $this->_fireEvent('phpsweetpdo.execute.started',
                          array ('sql' => &$sql, 'params' => &$params, 'driver_options' => &$driverOptions));

        //Preparing and executing
        $statement = $this->_prepareStatement($sql, $params, $driverOptions);
        $this->_executeStatement($statement, $sql, $params);
        $result = $statement->rowCount();

        $this->_fireEvent('phpsweetpdo.execute.finished',
                          array ('sql'    => &$sql, 'params' => &$params, 'driver_options' => &$driverOptions,
                                 'result' => &$result));

        return $result;
    }
public function execute($sql, $params = array (), array $driverOptions = array ()) {
        $this->_modifyParams($sql, $params);

        $this->_fireEvent('phpsweetpdo.execute.started',
                          array ('sql' => &$sql, 'params' => &$params, 'driver_options' => &$driverOptions));

        //Preparing and executing
        $statement = $this->_prepareStatement($sql, $params, $driverOptions);
        $this->_executeStatement($statement, $sql, $params);
        $result = $statement->rowCount();

        $this->_fireEvent('phpsweetpdo.execute.finished',
                          array ('sql'    => &$sql, 'params' => &$params, 'driver_options' => &$driverOptions,
                                 'result' => &$result));

        return $result;
    }
public function execute ( $ sql , $ params = array ( ) , array $ driverOptions = array ( ) ) { $ this -> _modifyParams ( $ sql , $ params ) ; $ this -> _fireEvent ( 'phpsweetpdo.execute.started' , array ( 'sql' => & $ sql , 'params' => & $ params , 'driver_options' => & $ driverOptions ) ) ; //Preparing and executing $ statement = $ this -> _prepareStatement ( $ sql , $ params , $ driverOptions ) ; $ this -> _executeStatement ( $ statement , $ sql , $ params ) ; $ result = $ statement -> rowCount ( ) ; $ this -> _fireEvent ( 'phpsweetpdo.execute.finished' , array ( 'sql' => & $ sql , 'params' => & $ params , 'driver_options' => & $ driverOptions , 'result' => & $ result ) ) ; return $ result ; }
Execute a statement without returning any data

@param string|array $sql           SQL statement
@param array        $params        Parameters. A single value or an array of values
@param array        $driverOptions Specific options to pass to underlying PDO prepare() call. Empty array if no options

@return integer A number of rows affected by last operation
Execute a statement without returning any data