
st=con.createStatement();
int a=Integer.parseInt(txttrno.getText());
String b=txttname.getText();
String c=txtfrom.getText();
String d=txtto.getText();
String k=txtname.getText();
String f=txtgen.getText();
String g=txtadd.getText();
int h=Integer.parseInt(txtphone.getText());
rs=st.executeUpdate("insert into railway values("+a+",'"+b+"','"+c+"','"+d+"','"+e+"','"+f+"','"+g+"',"+h+")");
}
con.close(); st.close(); rs.close(); }
wts wrong with above code?

Hello Friend,
Which type of error occurs?
Anyways post your full code with database table.
Thanks