c-innovacion2/resoft/cms_for_bcb/process/comment/edit_ok.jsp

31 lines
829 B
Plaintext

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/include/db/db_connect.jsp"%>
<%@include file="/include/function/function.jsp"%>
<%request.setCharacterEncoding("utf-8");%>
<%
String c_comment_no = r_call(request.getParameter("c_comment_no"));
String c_point = r_call(request.getParameter("c_point"));
String c_content = r_call(request.getParameter("c_content"));
if(c_comment_no.equals("")){
%>
<script>
alert("Wrong Connect.")
</script>
<%
}else{
String sql_ok = "update tbl_comment set c_point="+ c_point +", c_content ='"+ c_content +"' ";
sql_ok = sql_ok + " where c_no = " + c_comment_no ;
stmt2.execute(sql_ok);
%>
<script>
alert("Edit OK.")
parent.my_reload();
</script>
<%
}
%>
<%@include file="/include/db/db_close.jsp"%>