FieldCount(); // grab the number of fields for($i = 0; $i < $fieldcount; $i++) { // loop over all of the fields $fld = $d->FetchField($i); $this->columns[] = $fld->name; } $d->MoveFirst(); $this->rows = $d->GetArray(); } } ?>