Ich habe das problem, dass ich jetzt 2 Hauptkategorien habe (wie im Forum) und darunter Foren einfügen möchte, es wird aber nur das letzte Forum ausgegeben, warum? Was habe ich falsch gemacht?
	
							
						
					PHP-Code:
	
	
include('class_template.inc.php');
$titel = array(
a => array("Off-Topic", "1"),
$b => array("Feedback", "2")
);
$forum = array(
$a => array("Kritik", "1"),
$b => array("Off-Topic", "2"),
$c => array("Allgemeines", "1")
);
foreach($titel as $element)
{
$tpl = new Template('table_head.htm'); 
$tpl->assign('titel', $element[0]); 
$tpl->out();
    foreach($forum as $aus)
    {
        if($aus[1] == $element[1])
        {
            $tpl2 = new Template('table_middle.htm'); 
            $tpl2->assign('forum', $aus[0]); 
            $tpl2->out();
        }
    }
echo "<br>";
} 
 
          

 
							
						
Kommentar