dbh = $dbh; $this->_numRows = @$this->rowCount(); //$this->_numFields = @mysql_num_fields($this->_queryId); $this->_currentRow = -1; $this->_currentRecord = array(); } function next() { //DEPRECATED!!! Use $this->fetch(); instead!!! if ($this->_currentRow + 1 >= $this->_numRows) { return false; } else { $this->_currentRecord = @$this->fetch(); $this->_currentRow++; return true; } } function getRecord() { //DEPRECATED!!! Use $this->fetch(); instead!!! return $this->_currentRecord; } function getString($column) { //DEPRECATED!!! Use $this->fetch(); instead!!! if (is_int($column) == true) { return (string) $this->_currentRecord[$column - 1]; } else { return (string) isset($this->_currentRecord["$column"]) ? $this->_currentRecord["$column"]: ""; } } function getInt($column) { //DEPRECATED!!! Use $this->fetch(); instead!!! return $this->getString($column); //Dynamic typing OMG... } function getNumRows() { //DEPRECATED!!! Use $this->rowCount(); instead!!! return $this->_numRows; } }