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)

Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Oct 18, 2016, 10:16 AM EDT
This thread shares an in-depth overview of this scenario, you can see that, http://stackoverflow.com/questions/21302244/check-if-record-exists-in-database
Ujjwal GuptaRank #1,687 · 905 reputationPosted Oct 18, 2016, 10:27 PM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Oct 19, 2016, 2:01 AM EDT
modeste modeste28 reputationPosted Oct 19, 2016, 5:56 AM EDT