Section Problem

From: Date: Thu, 16 Jan 2003 12:39:54 +0000
Subject: Section Problem
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7220@lists.php.net to get a copy of this message
I do have a strange problem with sections. This is my database: Table faqcategory pid Thema 1 Haarpflege 2 Körperpflege 5 Haarausfall This is my database connection with Pear: $query = "SELECT * FROM faqcategory"; $Result = $db->query($query); while ($Row = $Result->fetchRow()){ $smartytemp->assign("pid", $Row[0]); $smartytemp->assign("Thema", $Row[1]); $smartytemp->display("cat_closed2.php"); } That is the cat_closed2.php {section name=schuu loop=$pid} PID: {$pid[schuu]}&nbsp;&nbsp;&nbsp; THEMA: {$Thema[schuu]}<br> {sectionelse} There are no values to loop through. {/section} Now i do´nt get the output waht i want. Here is my output: PID: 1 THEMA: H PID: 2 THEMA: K PID: THEMA: ö PID: 5 THEMA: H PID: THEMA: a PID: THEMA: a PID: THEMA: r PID: THEMA: a Without [schuu] it looks like that: PID: 1 THEMA: Haarpflege PID: 2 THEMA: Körperpflege PID: 2 THEMA: Körperpflege PID: 5 THEMA: Haarausfall PID: 5 THEMA: Haarausfall PID: 5 THEMA: Haarausfall PID: 5 THEMA: Haarausfall PID: 5 THEMA: Haarausfall Whats going wrong? Am i doing the wrong way? THX Frank Thiel

« previous php.smarty.general (#7220) next »