时间:2021-07-01 10:21:17 帮助过:20人阅读
加个if语句在前面判断可以吗?
if $num==1
{pc:get sql="SELECT * from category where category.catid=5 order by catid ASC" num="1" return="data"}
else
{pc:get sql="SELECT * from category where category.catid=$catid order by catid ASC" num="7" return="data"}