__construct($limit); } function __construct($limit = 5){ $this->conn = db_connect(); } public function display(){ $sql = "SELECT id FROM programselection ORDER BY id DESC"; $result =& $this->conn->query($sql); if (DB::isError($result) != true){ while ($row =& $result->fetchRow(DB_FETCHMODE_OBJECT)){ $programselection = new ProgramSelection($row->id); $programselection->display(); } }else { error("ProgramsSelection: " . $result->toString()); } } public function displayList(){ $sql = "SELECT id FROM programselection " . "ORDER BY id DESC"; $result =& $this->conn->query($sql); if (DB::isError($result) != true){ if($result->numRows() > 0){ ?>
| id | fra | til | type | |||
|---|---|---|---|---|---|---|
Ingen programutvalg er registrert ennå.
toString()); } } } ?>