怎么使用:在循環(huán)標(biāo)簽中使用自定義SQL條件where
這個where里面接變量 好像不行呀 會一直報錯
{php $where=urlencode("(uid=123 or uid="$member.uid")");}
{module module=news where=$where}
{/module}
{$debug}官方提醒:使用module內(nèi)容循環(huán)標(biāo)簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個參數(shù)后面都有用法解釋
{php $where=urlencode("(uid=123 or uid=".$member.uid.")");} {module module=news where=$where}開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!