This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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