【php开源代码栏目提醒】:以下是网学会员为您推荐的php开源代码-category_admin.php,希望本篇文章对您学习有所帮助。
<?php
include("global.php");
?>
<link type="text/css" rel="stylesheet" href="style.css">
<div id="maintable">管理栏目</div>
<?php
include('../include/dbconnect.inc.php');
$sql = "select * from category";
$rs = my
sql_query($sql);
echo "<table cellspacing='0'><tr><th>栏目名称</th><th>操作</th></tr>";
while ($row =
mysql_fetch_array($rs)) {
echo <<<EOHTML
<tr><td>{$row['name']}</td><td align='center'><a href='category_edit.php?cid={$row['cid']}' target='main'> 编辑 </a>
<a href='cate_del.php?cid={$row['cid']}' target='main'> 删除 </a></td></tr>
EO
HTML;
}
echo "</table>";
?>