I can't figure out how to use the define_dynamic() method. In fact, I
can define it, but I don't succeed in parsing the contents of it...
If you please have a look at the code below, what should I insert as
return handle in the parse-function ?
$tpl->define(array("general"=>"general.htm",
"ranking"=>"ranking.htm"));
$tpl->define_dynamic("ranking_list", "ranking");
<<snip>>
while ($user = $db->fetch_array($result)) {
$tpl->assign(array("NAME"=>$user['username'],
"VALUE"=>$user['total_value']));
$tpl->parse(WHAT_SHOULD_GO_HERE??? , ".ranking_list");
}
$tpl->parse(CONTENT, "ranking");
$tpl->parse(MAIN, "general");
$tpl->FastPrint(MAIN);