public function delete()
    {
        $query = "DELETE FROM `{$this->table}` {$this->join}";
        if ($this->condition) {
            $query .= " WHERE {$this->condition}";
        }
        if ($this->limit) {
            $query .= " LIMIT {$this->limit}";
        }

        return $this->connection->execQuery($query, $this->params);
    }
public function delete()
    {
        $query = "DELETE FROM `{$this->table}` {$this->join}";
        if ($this->condition) {
            $query .= " WHERE {$this->condition}";
        }
        if ($this->limit) {
            $query .= " LIMIT {$this->limit}";
        }

        return $this->connection->execQuery($query, $this->params);
    }
public function delete ( ) { $ query = "DELETE FROM `{$this->table}` {$this->join}" ; if ( $ this -> condition ) { $ query .= " WHERE {$this->condition}" ; } if ( $ this -> limit ) { $ query .= " LIMIT {$this->limit}" ; } return $ this -> connection -> execQuery ( $ query , $ this -> params ) ; }
Deletes rows that match condition. It will return number of affected rows.
@return int
Deletes rows that match condition . It will return number of affected rows .