📄 deltit.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查看帖子信息</title>
</head>
<body>
<jsp:useBean id="connection" scope="request" class="com.JDBConnection"/>
<%
String id=request.getParameter("id");
String sqlBack="delete from tb_forumBack where id='"+id+"'";
connection.executeUpdate(sqlBack);
String sqlSend="delete from tb_forumSend where id='"+id+"'";
connection.executeUpdate(sqlSend);
connection.closeConnection();
%>
<script language="javascript" type="text/javascript">
window.location.href='showInformation.jsp';
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -