This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Might be a stupid consideration, but based on which database you use and how you retrieve connections to it, you must explicitly call the method commit() on Connection to actually save data on the database. Just my 2 cents.
Joined: Mar 22, 2008
Originally posted by Peter van de Riet: If the email doesn't exists then the statement rs.next() return false. I think you have to move the else-part to the other if.
its update the email now if exists but not inserting new record into db