addDynamicBlock('link'); $urls = new Urls; if ($_GET['orderBy'] == ""){ $whereclause = " ORDER BY url"; } else { $whereclause = " ORDER BY " . $_GET['orderBy']; } $urls->load_all_data($whereclause); $counter = 0; while (list(, $obj) = each($urls->urls)){ $counter++; $DummyArray=""; $DummyArray = Array(); array_push($DummyArray, new Variable('ID', $obj->ID)); array_push($DummyArray, new Variable('URL', $obj->url)); array_push($DummyArray, new Variable('NAAM', $obj->naam)); array_push($DummyArray, new Variable('ALTTEXT', $obj->altText)); $contentSite->parseDynamicBlock('link',$DummyArray); } $ax = new AbstractX(); $ax->addTemplate($contentSite); $ax->printBufferedContents(); ?>