Current File : /home/obabain/public_html/abc/update_mc.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 order_no=request.getParameter("order_no");  
      String heat_no=request.getParameter("heat_no");
      String item_description=request.getParameter("item_description");
      String tapping_temp=request.getParameter("tapping_temp"); 
      String pouredq_no=request.getParameter("pouredq_no");  
      String pouredq_kg=request.getParameter("pouredq_kg");
      String rej_qtywt=request.getParameter("rej_qtywt");
      String weight=request.getParameter("weight");
      String remarks=request.getParameter("remarks");
      

if(order_no.length()!=0 ||order_no!=null)
{
  Statement stm=con.createStatement();
  int i=stm.executeUpdate("update main_patternlists set  order_no='"+order_no+"',heat_no='"+heat_no+"',item_description='"+item_description+"',tapping_temp='"+tapping_temp+"',pouredq_no='"+pouredq_no+"',pouredq_kg='"+pouredq_kg+"',rej_qtywt='"+rej_qtywt+"',remarks='"+remarks+"',weight='"+weight+"' where id="+id+"");
  response.sendRedirect("Mould_checkView.jsp"); 
}
}
catch(Exception el){}

%>



</body>
</html>