+ 1
JDBC Insert Value to Database from JTextField
https://code.sololearn.com/ctW63vN68XG3/#java I have this program that im trying to INSERT data into the database (Microsoft SQL) through the jtextfield but whenever i press the Signup button(ActionListener), it prints "The connection is closed"
3 Respuestas
+ 11
You've initiated the connection @ StartConnection method but it gets terminated immediately in the finally block.
+ 6
You're welcome! 😉
+ 1
OKAY... problem solved i did not notice that part as i thought it was something wrong with the preparedStatement section... thank you @Zephyr Koo