smarty foreach
<{foreach from=$data item=val }> <tr align="center"> <td><{$val.item_id}></td> <td><{$val.item_name}></td> <td> <a href="member.php?item_id=<{$val.item_id}>">修改</a> <a href="member.php?item_id=<{$val.item_id}>">删除</a> </td> </tr> <{/foreach}>