Current File : /home/obabain/public_html/abc/Pouring_Update.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file="Connection.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
try
{
String id= request.getParameter("id");
String pqtyno=request.getParameter("p_qtyno");
String pqtywt=request.getParameter("p_qtywt");
String rqtyno=request.getParameter("r_qtyno");
String rqtywt=request.getParameter("r_qtywt");
String tqtyno=request.getParameter("t_qtyno");
String tqtywt=request.getParameter("t_qtywt");
String remark= request.getParameter("remarks");
Statement stm=con.createStatement();
int i=stm.executeUpdate("update pouring1 set p_qtyno ='"+pqtyno+"',p_qtywt='"+pqtywt+"',r_qtyno ='"+rqtyno+"',r_qtywt='"+rqtywt+"',t_qtyno ='"+tqtyno+"',t_qtywt='"+tqtywt+"',remarks='"+remark+"' where p_id='"+id+"'");
response.sendRedirect("Mouldinglistveiw.jsp");
}
catch(Exception el){
out.println(el);
}
%>
</body>
</html>
</html>