Jump to content

How to compare user input in a jTextfield with data in the database? (im using java & php)

Shammikit

  on this button click i want to compare user input on the textfield with the data in my database.this is my code but nothing is happening when i run it and i cant find any mistakes in  this. can u please help me figure out whats wrong with it?
   

 

Link to comment
Share on other sites

Link to post
Share on other sites

You hurt yourself with handling exception in this way. you see, you "handle" exception but you don't log it anywhere, so when exception occurs then nothing happens as it is catch but not logged. add something like this:

Logger.getLogger(YOUR_CLASS_NAME.class.getName()).log(Level.SEVERE, null, ex);   

Or anything that will notice you about exception.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×