;dbname=', '', ''); try { $this->getconnection(); $array = array(); $stmt = $this->pdo->prepare("select setning her"); if ($stmt->execute()) { while($row = $stmt->fetch()) { $array[] = $row; } } $this->pdo = null; return $array; } catch (Exception $e) { $this->error[] = $e->getMessage(); } ?>