为什么数据库数据读取不出来?

浏览:1394 发布日期:2016/03/08 分类:求助交流
{foreach $info as $k => $v}
<tr id="product1">
<td>{$v.goods_id}</td>
<td><a href="#">{$v.goods_name}</a></td>
<td>{$v.goods_number}</td>
<td>{$v.goods_price}</td>
<td><img src="{$smarty.const.ADMIN_IMG_URL}{$v.goods_big_img}" height="60" width="60"></td>
<td><img src="{$smarty.const.ADMIN_IMG_URL}{$v.goods_small_img}" height="40" width="40"></td>
<td>苹果apple</td>
<td>{$v.goods_create_time}</td>
<td><a href="{$smarty.const.__CONTROLLER__}/upd">修改</a></td>
<td><a href="javascript:;" onclick="delete_product(1)">删除</a></td>
</tr>
{/foreach}
<tr>




我在Goods控制器 实例化GOODS表
$goods = D("Goods");
$info = $goods -> select();
show_bug($info);
可以显示数据、、、、但是上面那段代码不行。。。
最佳答案
评论() 相关
后面还有条评论,点击查看>>