No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
©Official Celeb On Facebook®
█║▌│█│║▌║││█║▌║▌║║▌
public void cosUpdate(String sr,String name,String fname,String adress,String phone,String refernce,String tailor) { try{ String QUERY1 = "UPDATE Info1 SET FatherName = '"+fname+"' WHERE Sr = '"+sr+"'"; JOptionPane.showMessageDialog(null,QUERY1); Class.forName(JDBC_DRIVER); connection=DriverManager.getConnection(DATABASE_URL); statement=connection.createStatement(); result =statement.executeUpdate(QUERY1); if(result >0) JOptionPane.showMessageDialog(null,"Successfull"); else JOptionPane.showMessageDialog(null,"UnSuccessfull"); } catch(Exception ex) { JOptionPane.showMessageDialog(null,"Error in cosUpdate() Method","Error",JOptionPane.ERROR_MESSAGE); } finally{ try{ resultset.close(); statement.close(); connection.close(); … |