bbs4/comment_delete.jsp > JSP

본문 바로가기

사이트 내 전체검색

뒤로가기 JSP

bbs4/comment_delete.jsp

페이지 정보

작성자 관리자 작성일 23-03-17 10:39 조회 537 댓글 0

본문

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>


<%@ include file="/include/header.jsp" %>


<%

request.setCharacterEncoding("utf-8");


String code = request.getParameter("code");

String uid = request.getParameter("uid");

String field = request.getParameter("field");

String search = request.getParameter("search");

String page_now = request.getParameter("page_now");

String com_uid = request.getParameter("com_uid"); //댓글 uid


//삭제

String sql = "delete from comment where uid="+com_uid;

Connection conn=DriverManager.getConnection(url, user, password);

Statement stmt=conn.createStatement();

stmt.executeUpdate(sql);


stmt.close();

conn.close();

%>

<script type="text/javascript">

location.href="view.jsp?code=<%=code%>&uid=<%=uid%>&field=<%=field%>&search=<%=search%>&page_now=<%=page_now%>";

</script>

추천0

댓글목록 0

등록된 댓글이 없습니다.


Copyright © dancePKT. All rights reserved.
PC 버전으로 보기