public function increment($column, $value)
    {
        $this->params[':column'] = $value;
        $query = "UPDATE `{$this->table}` {$this->join} SET `$column` = `$column` + :$column";
        if ($this->condition) {
            $query .= " WHERE {$this->condition}";
        }
        if ($this->limit) {
            $query .= " LIMIT {$this->limit}";
        }

        return $this->connection->execQuery($query, $this->params);
    }
public function increment($column, $value)
    {
        $this->params[':column'] = $value;
        $query = "UPDATE `{$this->table}` {$this->join} SET `$column` = `$column` + :$column";
        if ($this->condition) {
            $query .= " WHERE {$this->condition}";
        }
        if ($this->limit) {
            $query .= " LIMIT {$this->limit}";
        }

        return $this->connection->execQuery($query, $this->params);
    }
public function increment ( $ column , $ value ) { $ this -> params [ ':column' ] = $ value ; $ query = "UPDATE `{$this->table}` {$this->join} SET `$column` = `$column` + :$column" ; if ( $ this -> condition ) { $ query .= " WHERE {$this->condition}" ; } if ( $ this -> limit ) { $ query .= " LIMIT {$this->limit}" ; } return $ this -> connection -> execQuery ( $ query , $ this -> params ) ; }
Updates a single column and increments it with selected value. Returns number of affected rows.
@param string $column
@param int $value
@return int
Updates a single column and increments it with selected value . Returns number of affected rows .