julia_yl
注册会员

UID 93422
精华
0
积分 132
帖子 70
金钱 132 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2007-5-22
状态 离线
|
[广告]: q
m
smarty 模板如何无次序输出数组的内容?
file.PHP
$result = mysql_query("select title from help where ID=44 or ID=47 or ID=48 order by ID");
$tpl->assign("help",mysql_fetch_array($result));
file.tpl
{$help[2]}
....
{$help[1]}
.....
{$help[0]}
显示的不是标题,而是Array
如何才是正确的表达式?谢谢
|
|