I have the following example table and attributes:
---------------------------
| Name | Town |
---------------------------
| Name 1 | POOLE
As Marc B stated, using explode.
getPlayerTown());
foreach($array as $Town){
$list = $list ."'%" .$Town ."%', ";
}
$SQL = "SELECT * FROM `table` WHERE `Town` LIKE ANY(" .$list .")";
?>
Please go the smart route and normalize your data. This idea may work, but that doesn't mean it is the best choice.