numCols(); $intFields = array(); $info = $d->dbh->tableInfo($d); for($i = 0; $i < $fieldcount; $i++) { $this->columnNames[$i] = $this->_charsetHandler->transliterate($info[$i]['name']); $type = $info[$i]['type']; if(in_array($type, array('int', 'real', 'year'))) { $intFields[] = $i; } } if($d->numRows() > 0) { $line = $d->fetchRow(DB_FETCHMODE_ORDERED, 0); do { foreach($intFields as $key => $val) { $line[$val] = (float) $line[$val]; } $this->rows[] = $line; } while ($line = $d->fetchRow(DB_FETCHMODE_ORDERED, $rows)); } } } ?>