Creating a search function for a database

I apologize for what I’m sure is a simple question. I am brand new to coding and trying to code a search function for a database.

Here’s the search bar

Here’s the database with the field I want to be allow users to search with

And here’s the code I am using

I followed a youtube video and that might be part of my issue. Any advice, videos, or suggestions would be greatly appreciated, happy to answer any questions if I left anything important out.

Hi Daniel,
We have an example for this: https://www.wix.com/corvid/example/search-a-database
Scroll down for the full code and instructions, or you can open it as a template in the Editor.
Hope it helps!