Dear experts!
You need to organize advanced output filtering from MySQL. It is interesting to me where to start, what you need to know and how to develop it correctly, so that in the future you can easily add other filtering parameters and, accordingly, do not load the database.
In the picture that I attached below, you can see the type of filtering, as I want to do.
Please tell me if there are any special frameworks, or explain the PHP algorithm for developing data filtering.
Thank!

where? - pavelSelect .... where ... = ... and ... = ...I think it’s easy to substitute the parameters. - pavel