![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
程序部分:
<? include("conn.php");
$strQuery = "SELECT title FROM information ORDER BY id DESC";
$rs = &$conn->Execute($strQuery);
$smarty->assign("titles", $rs->GetArray(title));
unset($rs);
$conn->close();
$smarty->display("index.tpl");
?>
模板部分:
{section name=customer loop=$titles}
name: {$titles[customer].title}
{/section}
为什么没数据显示呀.
提问者:风和日丽 08-22 12:12
答复

