列表添加商品也代码
2013-10-12 19:07 F-lower 阅读(280) 评论(0) 编辑 收藏 举报<?php
include "../include/head.php";
include "../include/cn.php";
$sql="select list_content.title as title,list_content.content as content,list_class.title as tt,list_content.id as id from list_content inner join list_class on list_content.class=list_class.id";
$rs=mysql_query($sql);
?>
<body>
<table width="100%" border="1" cellspacing="1" cellpadding="1">
<tr>
<td colspan="5" align="center"><strong>列表模块管理</strong></td>
</tr>
<tr>
<td width="13%">主题</td>
<td width="41%">内容</td>
<td width="26%">类别</td>
<td width="11%">删除</td>
<td width="9%">修改</td>
</tr>
<?php
while ($row=mysql_fetch_array($rs))
{
?>
<tr>
<td><?php echo $row["title"]?></td>
<td><?php echo $row["content"]?></td>
<td><?php echo $row["tt"]?></td>
<td><a href="del.php?id=<?php echo $row["id"]?>" onClick="return confirm(确认要删除么)">删除</a></td>
<td><a href="up1.php?id=<?php echo $row["id"]?>" onClick="return confirm(确认要修改么)">修改</a></td>
</tr>
<?php
}
?>
</table>
</body>
</html>