How to search multiple fields in a MySQL database with a PHP array.
For example, search fields like place_name, admin_name1, and admin_name2 using an array of ["Cambridge","Massachusetts","US"] with using the wildcard %
Below is the exact structure of database
![]]](https://mapledrawhubb.com/i.sstatic.net/QMLfT.png)
header("Content-type: application/json"); print(json_encode($places, JSON_PRETTY_PRINT));, each of which represents a row from places that somehow matches the value of parameters passed such as:["Cambridge", "Massachusetts", "US"]["Cambridge", "Massachusetts"]["Cambridge","MA"]["02138"]