Help Me!! I want to do OR search!!

Excuse me.

Please help us early.

I touch phalconPHPFramework on work.

But, I can't create "And Search".

So,help us haha...

// AND検索 $keyword = mbconvertkana($searchword, 's'); // 全角スペースを半角スペースに変換 $arykeyword = pregsplit('/[\s]+/', $keyword, -1, PREGSPLITNOEMPTY);

        foreach ($ary_keyword as $word) {
            $d_products = D_products::find(array(
                                "text_search LIKE :keyword:",
                                "bind"=>array(
                                    'keyword'=> '%' . $word . '%'
                                )
                            ));
        }


12.2k

$dproducts = Dproducts::find(array( "text_search LIKE '%' :keyword: '%'", "bind"=>array( 'keyword'=> $word ) ));

Thanks!! jzbis!!

I am grateful for your prompt response.

$dproducts = Dproducts::find(array( "text_search LIKE '%' :keyword: '%'", "bind"=>array( 'keyword'=> $word ) ));

Did you need to do this find in foreach ? Can you do one find with LIKES and ORS ?