I have a search form where there are multiple checkboxes as inputs:
<input type="checkbox" name="search[]" value="pool">pool</input>
<input type="checkbox" name="search[]" value="pc">pc</input>
Now, based on the above check boxes, if I select both the values (pool
and pc
), everything starting both "pool" and "pc" has to be retrieved in all combinations--like POol
,POOl
,pOOl
,Pc
, etc. This needs to occur server-side in PHP.
How do I dynamically search from the database for all combinations? Can I somehow use the answers to the question "Mysql Like multiple values"?