hey friends,
im getting this error illegal state of expression
plz help me wid this
Connection db = DriverManager.getConnection(connectURL);
Statement stmt = db.createStatement();
String c = request.getParameter("criteria");
String a = request.getParameter("value");
ResultSet rs;
if(c.equals("BillNo")){
--error-- rs = stmt.executeQuery("select * from orders where billNo="+a+);
}else if(c.equals("UserId")){
--error-- rs = stmt.executeQuery("select * from orders where userid="+a+);
}
else if(c.equals("ProductId")){
--error-- rs = stmt.executeQuery("select * from orders where productid="+a+);
}