Current File : /home/obabain/public_html/abc/update_pattern.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 item_name=request.getParameter("item_name");
   
      String pattern_by=request.getParameter("pattern_by");
      String methoding=request.getParameter("methoding");
      String itempattern_type=request.getParameter("itempattern_type");    
      
if(pattern_by.length()!=0 ||pattern_by!=null)
{
  Statement stm=con.createStatement();
  int i=stm.executeUpdate("update pattern_details set  order_no='"+order_no+"',item_name='"+item_name+"',pattern_by='"+pattern_by+"',methoding='"+methoding+"',itempattern_type='"+itempattern_type+"' where id="+id+"");
  response.sendRedirect("pattern_detailsView.jsp"); 
}
}
catch(Exception el){}
%>

</body>
</html>