模板循环标签中的查询条件,可以使用通配符来组装各种形式的查询条件语句,

当通配符都不满足你的查询条件时,你可以使用where标签来自己写原生态SQL语句,语法格式为:

{php $where=urlencode("自定义sql条件");}
{module module=news where=$where}

{/module}
{$debug}


例如查询 uid是 123或者是321 的用户发布的文章:

{php $where=urlencode("(uid=123 or uid=321)");}
{module module=news where=$where}

{/module}
{$debug}


文档最后更新时间:2022-09-04 14:21:47
我来修改此文档(2) 不会操作怎么办?