How can I filter a db query only if there is something in the text input box?

How can I filter only if there is something in the text input box? If the box is empty than we have no data coming up in my query because the variable is empty.

Community Page
Last updated: