This question is similar to PHP Multiple Dropdown Box Form Submit To MySQL, but with a twist.
Let's assume we have an HTML multi-select, which gets submitted to a PHP backend.
How do you elegantly create a mysql request with an OR condition on the values of a multi-select?
For instance I have a multi-select with a list of sports. How do do:
SELECT * FROM sports WHERE sport.name=:sport1 OR sport.name=:sport2 OR sport.name=:sport3...