Searching and matching Data

Hello! I am looking to build a key page! Where a user can activate a key that they were given (which is in the database). I am having trouble figuring out a way to verify if the key entered in the input box matches any of the keys in the database. So basically once the user hits submit, the application will look in the database for that key, if it is not in the database, or already taken by another user it will bring them to a page saying, “key not found”. I hope someone can help with this!


Hi, did you solve your problem? I want to build similar solution