{module module=newbook catid=1 num=10 LIKE_title=%买房移民% OR LIKE_title=%购房移民%}
<li>
<span></span>
<a href="{$t.url}" target="_blank" title="{$t.title}">{$t.title}</a>
</li>
{/module}为啥我这个循环代码只出了6条记录呢 标题带有买房移民的不出来呢 是什么原因 还是我这个or 写错了 下面是这个代码解析的结果
SELECT * FROM `dr_1_newbook` WHERE `dr_1_newbook`.`title` LIKE "%购房移民%" AND (`dr_1_newbook`.`catid` = 1 OR `dr_1_newbook`.`catids` LIKE "%\"1\"%") AND `dr_1_newbook`.`status` = 9 ORDER BY `dr_1_newbook`.`updatetime` DESC LIMIT 10
{php $my=urlencode('`title` LIKE "%买房移民%" or `title` LIKE "%购房移民%"');} {module module=newbook catid=1 num=10 where=$my}{php $my=urlencode('`title` LIKE "%买房移民%" or `title` LIKE "%购房移民%"');} {module module=newbook catid=1 num=10 where=$my}{php $my=urlencode('`title` LIKE "%买房移民%" or `title` LIKE "%购房移民%"');} {module module=newbook catid=1 num=10 where=$my}为啥我写成这样的 就出来买房移民的 不出来 购房移民的 那个符号 能解释下吗 手册里面也是 {php $where=urlencode("自定义条件");}{php $my=urlencode("title LIKE '%买房移民%' or title LIKE '%购房移民%');} {module module=newbook catid=1 num=10 where=$my}