How to check whether the value entered by the user in console exists in database? I have established a database connection. I got two values from console. I have to check whether the both value exists in database.
http://ideone.com/8ALYrC(Source Code)