the following code block is giving an sql exception. I have checked through it several times will no success.
PreparedStatement stat = con.prepareStatement("Insert into STUDENT_T values(?,?)"); stat.setInt(1,Integer.parseInt(txtId.getText())); stat.setString(2,txtName.getText());
Hi Thanks, i got that matter verrified. i belive there was an sql error i am not very sure what really was the error but i just wrote back again the same sql query using capital letters as the fields of the tables were created in capital.