<?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>
转载于:https://www.cnblogs.com/F-lower/p/3365810.html