Combining "form" and "dropdown" payload data and building a mysql query

Please don't open a second thread about the same topic: How to pass payload data from user "form" to function as it wastes peoples time.

I am closing this thread