太阳成游戏网站CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
QQ1835022299
028-61286886
{php $php=1;} {if 4 > $php > 1} {category module=share id=23,24}
这是我写的循环语句报错了,我想实现的效果是 判断 当$php大于1小于4的时候 执行第一个循环语句 否则循环第二个语句 我应该怎么改?
{if 4 > $php > 1}
{if 4 > $php and $php > 1}
{php $php=1;} {if $php > 1 and $php < 4} {category module=share id=23,24}
{$php++;}
全面免费!模板制作的必备插件,自动生成字段的模板标签,解决新手老手调用困难问题
{php $php=1;} {category module=news pid=0 return=c1} {if $php > 1 and $php < 4} {category module=share id=23,24}
这个是我循环的代码
{category module=news pid=$c1.id return=c2}- {$c2.name}
{/category}
为啥我做了判断 还是没有在体育资讯后面显示 id=23,24的栏目呢 我应该怎么改呀
{category module=news pid=$c1.id return=c2}- {$c2.name}
{php $php++;}
{/category}
字段标签生成工具
全面免费!模板制作的必备插件,自动生成字段的模板标签,解决新手老手调用困难问题
{category module=news pid=$c1.id return=c2}- {$c2.name}
{/category}
{category module=news pid=$c1.id return=c2}- {$c2.name}
{/category}