Почему не работает поиск если сделать так
if (!empty($Search))
{
$words = clearWords($Search);
foreach($words as $k=>&$v) $v="'".$v."%'";
{$arrWHEREs = array
(
" name LIKE ('%{clearWords($search)}%')",
" address LIKE ('%{clearWords($search)}%')",
" description LIKE ('%{clearWords($search)}%')",
" link LIKE ('%{clearWords($search)}%')",
" vlink LIKE ('%{clearWords($search)}%')",
" email LIKE ('%{clearWords($search)}%')",
" type LIKE ('%{clearWords($search)}%')",
" age LIKE ('%{clearWords($search)}%')",
" gender LIKE ('%{clearWords($search)}%')",
" price LIKE ('%{clearWords($search)}%')",
" date LIKE ('%{clearWords($search)}%')",
);}
$search = " ( ".implode(" or ", $arrWHEREs)." ) ";
} else $search ="";