请大家看看这有什么问题,为什么不能显示数据啊??也没有报错,但我浏览show.php的时候什么都没有,只有test.htm页面的bgcolor="#B9E9FF"颜色!!为什么没有数据显示??show.php页面:<table border="1"
><?phpinclude_once("libs/Smarty.class.php"); //包含smarty类文件
define("NUM", 5); //定义每次显示的新闻条数
$smarty = new Smarty(); //建立smarty实例对象$smarty
$smarty->templates_dir = "./templates"; //设置模板目录
$smarty->compile_dir = "./templates_c"; //设置编译目录
$smarty->cache_dir = "./cache"; //设置缓存目录
$smarty->cache_lifetime = 60 * 60 * 24; //设置缓存时间
$smarty->caching = false; //这里是调试时设为false,发布时请使用true
$smarty->left_delimiter = "<{"; //设置左边界符
$smarty->right_delimiter = "}>"; //设置右边界符$db=mysql_connect('localhost','root','');
mysql_select_db('test',$db);
$sql="select id,name from testmail";
mysql_query("set names gb2312"); 
$result=mysql_query($sql,$db);    while ($row = mysql_fetch_array($result))
     {
          
     
   
  
$array[]=array("id"=>$row['id'],"name"=>$row['name']);
    } 
mysql_close(); 
$smarty->assign('array',$array);
$smarty->display('test.htm');
?></table>test.htm<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#B9E9FF">
<tr> 
<td height="115" width="10"></td>
<td valign="top" width="295">
<{section name=loop loop=$new}>
<{$new[loop].id}>
<{$new[loop].name}><br>
<{/section}>
</td>
</tr>
</table>