handle = $handle; } public function __destruct() { if (is_object($this->handle)) $this->handle->free(); } public function seek($row) { if (is_object($this->handle)) { return $this->handle->data_seek($row); } return null; } public function numRecords() { if (is_object($this->handle)) { return $this->handle->num_rows; } return null; } public function nextRecord() { if (is_object($this->handle) && ($data = $this->handle->fetch_assoc())) { return $data; } else { return false; } } }