$sql="select * from shop";
$result=mysql_query($sql);
$row=mysql_fetch_row($result);


$smarty->assign("row",$row);

$smarty->display("page.html");

dump($row);//结果如下:
Array
(
    [0] => 1
    [1] => iphone4
    [2] => 90.00
)smarty怎么写啊:?我是这样写的: <{section loop=$row name=num}>
<{$row[num].cart_id}>
<{$row[num].cart_name}>
<{$row[num].cart_price}>
<{/section}>什么都不显示