SQL - WHERE LIKE OR with bindParam -


i'm trying sql search multiple checkbox 3 options :

-basico -avancado -interm

when 2 first options selected suppose i'll have :

select *  candidates  catiav4 %avançado%    or catiav4 %basico%  order candidate_id desc  limit :debut,20  

for need use bindparam way

if ($metier13 != ''){ $metier13=implode("% or catiav4 %",$metier13); $metier13="%$metier13%"; $retour->bindparam(':catiav4', $metier13, pdo::param_str);} 

it works fine when 1 checkbox selected, when 2 selected not return results.

i believe i'm missing can't seen find it.

thank !


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -