📄 delnews.php
字号:
<?php
require("auth.php");
if(!$id){
$title = "No ID to Delete";
include("header.php");
echo "$title";
include("footer.php");
exit;
}
require("functions.php");
db_connect();
$sqldel = "DELETE FROM fubonews WHERE id='$id'";
if(mysql_query($sqldel)){
$title = "新闻删除成功";
include("header.php");
echo "$title<br>
<a href=\"index.php\">返回功能菜单</a>";
}
elseif(!mysql_query($sqldel)){
mysql_error() . "<br>不能删除该新闻";
mysql_close();
exit;
}
mysql_close();
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -