__construct(); } function __construct(){ $conn =& DB::connect(getDSN()); if (DB::isError($conn)){ error("JobCategories: " . $conn->toString()); exit(); }else { $this->conn = $conn; } $sql = "SELECT id, title FROM din_jobcategory"; $result = $this->conn->query($sql); if (DB::isError($result) != true){ $this->categories = $result; } } public function getCategories(){ return $this->categories; } public function displayList(){ ?> categories->fetchRow(DB_FETCHMODE_ASSOC)){ $jobCat = new JobCategory($row['id']); $jobCat->displayList(); } print("
stillingstyper  
"); } } ?>