POSCMS 版主:POSCMS负责人
标题中含有关键词A或者含有关键词B的的查询怎么弄
类型:POSCMS 更新时间:2018-10-12 17:02:41 module

标题中含有关键词A或者含有关键词B的的查询怎么弄


  {list action=module module=news catid=20  LIKE_title=%A% or LIKE_title=%B% order=hits num=12}

          <a href="{$t.url}" title="{$t.title}" target="_blank">{dr_strcut($t.title, 32)}</a>

  {/list}  


这种不行  ,大家看是哪里的错误

回帖
  • 可接二开、定制、使用解答
    #1楼    可接二开、定制、使用解答
    2018-10-12 17:01:56
    0

    {php $where=urlencode("(title like '%A%' OR title like '%B%' )");}

    {list action=module module=news catid=20 where=$where order=hits num=12}3.3.0可以这样写,不知道低版本支持不

  • 可接二开、定制、使用解答
    #2楼    可接二开、定制、使用解答
    2018-10-12 17:02:41
    0

    {php $where=urlencode("(title like '%A%' OR title like '%B%' )");}

    {list action=module module=news catid=20 where='$where' order=hits num=12}3.3.0可以这样写,不知道低版本支持不