fetch(PDO::FETCH_ASSOC, PDO::FETCH_ORI_ABS, 0); if($line != null) { $colNum = 0; $firstLine = array(); foreach($line as $k => $v) { $this->columns[$colNum] = $k; $firstLine[] = $v; $colNum++; } $lastLines = $d->fetchAll(PDO::FETCH_NUM); if($lastLines == NULL) { $this->rows = array($firstLine); } else { array_unshift($lastLines, $firstLine); $this->rows = $lastLines; } } } } ?>