"; $db = connect_database_mysqli(); $query = "SELECT * FROM `publicaties` ORDER BY `Groep` ASC , `Plek` ASC " ; // ORDER BY Naam1a"; $result = $db->query($query); // $db->query processes the query in the while ($row = $result->fetch_object()) { $cd = $row->Groep; $hdr = $row->Header; $shdr = $row->Subheader; $plek = $row->Plek; $naam = $row->Naam; $dir = $row->Bestandsmap; $doc = $row->Document; if ($cdsave <> $cd) { // nieuwe code if ( $cdsave <> "") {echo "";} echo "