Sitemap

query($query); // loop result and build the options $level_fang = 1; $offen = 0; while ($db->next_record()) { // indent spacer $spaces = ""; // how many levels $levels = $db->f("level"); for ($i = 0; $i < $levels; $i ++) { // add 2 spaces for every level $spaces = $spaces . "----"; } // end for if ($levels ==1){ if ($level_fang == 2){ if ($offen ==1){echo "
"; $offen=0;} echo ''. $db->f("name") .''; }else{ echo '
'. $db->f("name") .'';} } if ($levels ==2){ if ($level_fang == 1){ echo '"; $offen=0;} ?>