deluser.jsp

来自「网上服装店 能让用户在该网站上对物品进行上传购买等操作。该设计为原版」· JSP 代码 · 共 30 行

JSP
30
字号
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*"%>
<%@ page import="com.bwm.db.Condb"%>
<%@ page import="com.bwm.string.Str"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<%
	Condb con=new Condb();
	Str str=new Str();
	String username=str.toChinese(request.getParameter("username"));
	String del="delete from tb_User where Username='"+username+"'";
	int temp=con.executeUpdate(del);
	if(temp>0){
	response.sendRedirect("Uquery.jsp");
	}else{
%>
<script language="javascript">
	alert("数据库发生错误");
	history.back();
</script>
<%
	}
%>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?