Hello,
This question is similar to http://stackoverflow.com/questions/944158/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...