模板標(biāo)簽里面
條件循環(huán)修飾符、通配符 http://m.apdwn.com/doc/661.html
{module module=news LIKE_title=$keyword}
{$t.updatetime}
{/module} {$debug}我還想加一個(gè)
LIKE_keywords=$keyword
debug發(fā)現(xiàn),sql里面是 AND
WHERE `my`.`keywords` LIKE "%關(guān)鍵字%" AND `my`.`title` LIKE "%關(guān)鍵字%"
如何寫才是OR呢?
官方提醒:使用module內(nèi)容循環(huán)標(biāo)簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個(gè)參數(shù)后面都有用法解釋
用where參數(shù)可以or
{php $where=urlencode("(xxx or xxx)");} {module module=news where=$where} {$t.updatetime} {/module} {$debug}開(kāi)源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!