Problem gel�st
Hier, f�r die, die auch eine l�sung brauchen:
?php
	require_once vLIB/vlibTemplate.php;
	include _connect.inc.php;
	
	tmpl = new vlibTemplatetmpl/navigation.html;
	
	select_k = SELECT id, bezeichnung, icon FROM kategorie; � � � �
	result_kategorie = mysql_db_querydb, select_k, connect or dieerror in mysql request . mysql_error;
	anzahl_k = mysql_num_rowsresult_kategorie;
	
	fori = 0; i  anzahl_k; i++
	{
 � � �row_k = mysql_fetch_assocresult_kategorie;
 � � �
 � � �navigationik_id = row_kid;
 � � �navigationik_bezeichnung = row_kbezeichnung;
 � � �navigationik_icon = row_kicon;
 � � �
 � � �bezeichnung_id = row_kid;
 � � �echoi - anzahl_k nbr;
 � � �select_b = SELECT id, bezeichnung, icon 
           FROM bereich WHERE kategorie_id = .bezeichnung_id.;
 � � �result_bereich = mysql_db_querydb, select_b, connect
           or dieerror in mysql request . mysql_error;
 � � �anzahl_b = mysql_num_rowsresult_bereich;
 � � �
 � � �forj = 0; j  anzahl_b; j++
 � � �{
 � � � � row_b = mysql_fetch_assocresult_bereich;
 � � � � 
 � � � � bereichajb_id = row_bid;
 � � � � bereichajb_bezeichnung = row_bbezeichnung;
 � � � � bereichajb_icon = row_bicon;
 � � �}
 � � �navigationisubnavigation = bereicha;
	}
	tmpl-setvartitle, navigation;
	tmpl-setloopnavigation, navigation;
	
	tmpl-pparse;
?
edit: Ich habe den Source-Code ordentlich einger�ckt. Danke f�r das posten der L�sung.