METODO:
Quote:
public String addCliente(String nomeCliente, String cognCliente, String passCliente, String ncCliente){
//java.sql.Connection conn = linktodata();
String queryAdd = "INSERT INTO clienti(nome, cognome, password, numeroConto) values("
+"\""
+nomeCliente
+"\",\""
+cognCliente
+"\",\""
+passCliente
+"\",\""
+ncCliente
+"\")";
System.out.println("___"+queryAdd+"____");
try {
java.sql.Statement s = this.db.createStatement();
//int r =
s.executeUpdate(queryAdd);
} catch (Exception e) {
return ("___ERRORE_"+e);
}
return (queryAdd);
}
|
la query che genero e giusta, e su querybrowser me lo inserisce -.-''
nn inserisce nulla e nn mi vā in catch quindi qual'č il probblema !_!??