questiondeleting.jsp.svn-base
来自「用手机浏览的一个类似于聊天室 博克 homepage 等 对这方面有 兴趣的朋友」· SVN-BASE 代码 · 共 63 行
SVN-BASE
63 行
<!--------------------------------------------------------------------------------------------------------------
*@霸烙皋牢
*@Author : zhou peng(2008-05-23)
--------------------------------------------------------------------------------------------------------------->
<%@ page import='java.io.*,java.text.*,java.util.Date,java.util.Vector, java.sql.*, com.entaz.lib.db.*, com.entaz.relay.net.*' contentType='text/html;charset=euc-kr'%>
<%@ include file="../imgpath.jsp"%>
<%@ include file="../common_func.jsp"%>
<scrpt>
<%
String mphone = request.getParameter("mphone");
String gphone = request.getParameter("gphone");
String idx = request.getParameter("idx");
/*------------------------------------------------------------------------------------------------------
+ DB 包访 函荐
-------------------------------------------------------------------------------------------------------*/
Connection con = null;
PreparedStatement pstmt=null;
Statement stmt = null;
ResultSet rs = null;
ResultSet pageset = null;
/*------------------------------------------------------------------------------------------------------
+ 傈开 函荐
-------------------------------------------------------------------------------------------------------*/
String query1 = null, sql = null;
String name = null;
try
{
%><%@ include file="../getConnection.jsp"%><%
/*------------------------------------------------------------------------------------------------
* 急琶篮 龙巩阑 昏力
-------------------------------------------------------------------------------------------------*/
query1 = "DELETE FROM GT_LUCKY_TARO WHERE idx = "+idx;
query1 = query1 + "DELETE FROM GT_LUCKY_TARO_COMMENT WHERE Taro_idx="+idx;
pstmt = con.prepareStatement(query1);
int b = pstmt.executeUpdate();
pstmt.close();
response.sendRedirect("questionDeleted.jsp?mphone="+mphone+"&gphone="+gphone);
}
catch(Exception e)
{
throw e;
}
finally
{
if ( rs != null ) { try { rs.close(); } catch ( Exception e ) { } }
if ( stmt != null ) { try { stmt.close(); } catch ( Exception e ) { } }
if ( con != null ) { try { con.close(); } catch ( Exception e ) { } }
}
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?