Current File : //home/obabain/khb_obaba_in/SalesTransferExist.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file="Connection.jsp" %>
<%
try{
String loginid=(String)session.getAttribute("logid");
String uname=request.getParameter("username");
System.out.print(uname);
Statement ps = con.createStatement();
//ps.setString(1,request.getParameter("uname"));
ResultSet res = ps.executeQuery("SELECT * FROM ip_sales_transaction WHERE tnumber ='"+uname+"' and loginid="+loginid+"");
if(res.next()){
out.print("<span style='color:red;'>Duplicate No.</span>");
}
}catch (Exception e){
System.out.println("s");
}%>
<!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>
</body>
</html>