section (again)

From: Date: Sun, 27 Oct 2002 11:36:10 +0000
Subject: section (again)
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6242@lists.php.net to get a copy of this message
Can someone give me a hand on this ? {section name=looper loop=$r start=1} {section name=relooper loop=$sublinks[looper]} <a href=browse.php?{$sublinks[looper][relooper][category_id]}>{$sublinks[looper ][relooper][name]}</a>, {/section} {/section} It isn't displaying the "name" or "catergory_id" of the array. This is my PHP code: $result = mysql_query("select category_id, name from category where parent_id = 0 order by name"); while ($row = mysql_fetch_array($result)) { $x++; $r[$x] = $row[name]; $links[$x] = $row[category_id]; $subs = mysql_query("select category_id, name from category where parent_id = $row[category_id] order by name"); while ($stuff = mysql_fetch_array($subs)) { $y++; $local_link[$x][$y][name] = $stuff[name]; $local_link[$x][$y][category_id] = $stuff[category_id]; } } $smarty->assign(array("r"=> $r)); $smarty->assign(array("link"=>$links)); $smarty->assign(array("sublinks"=>$local_link)); $smarty->display("index.tpl"); The array contains the information, I have tested that.

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