I need help with an application

In particular im trying to make an application , with a login page , where you need to put a key in , after you press login and it should automatically verify if the key is in a database or not , and depending on case it should tell Valid Key or Invalid key , but i have problem in checking if the key is valid or not , because the key is indeed in the database , but everytime the application says key invalid
Was this page helpful?