<!-- main.htm -->
<html><head></head>
<body>
<!--BEGIN lists-->
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>{date}</td>
</tr>
<tr>
<td><p>{content}</p>
</td>
</tr>
</table>
<!--END lists-->
</html>
<?
...
$film->query("select time,content from test order by id desc limit 4 ");
$t = new Template(".");
$t->set_file("fhandle","temp.htm");
$t->set_block("fhandle","lists","a");
while ($film->next_record())
{
$t->set_var("date",$film->f(0));
$t->set_var("content",$film->f(1));
$t->parse("a","lists",true);
}
$t->parse("out","fhandle");
$t->p("out");
?>
i checked all the code ,and seems noting is wrong,
but always report:
Template Error: loadfile: lists is not a valid handle.
Halted
who can tell me what's wrong with the code?