How can I make a Dynamic Selector?

How can I make a dynamic selector? To put in my website store? I need help. In my team I was asked to make a search bar in PHP and to make a dynamic selector. Please help

@CyberPunk - you can use wild card “*” (asterisks) in the selector - if you are using to get data.

On the other hand, you can pass variables in selectors, as well - if you are using to send data to the search bar. You can pass variables in selectors by right clicking and choosing Add Variable, OR just use {{variable}} in the selector.