最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
phpcms调用现上一篇下一篇文章调用例子
时间:2022-06-25 16:15:17 编辑:袖梨 来源:一聚教程网
第1种方法:
{php $front=1;}
上一篇:{str_cut($r[title],50)}
{/get}
{if $front!=1}
上一篇:没有了
{/if}
{php $next=1;}
下一篇:{str_cut($r[title],50)}
{/get}
{if $next!=1}
下一篇:没有了
{/if}
第2种方法:
上一篇:
{get sql="select contentid,catid,url,title from phpcms_content where contentid < '$contentid' and catid='$catid' order by contentid desc" rows="1" return="v"}{php $front=1;}
{$v[title]}
{/get}{if $front!=1}无{/if}
下一篇:{get sql="select contentid,catid,url,title from phpcms_content where contentid > '$contentid' and catid='$catid' order by contentid asc" rows="1" return="s"}{php $front=2;}
{$s[title]}{/get}{if $front!=2}无{/if}
第3种方法:
这种方法是js调用方法,需要下载附件中的一个php文件,放在网站根目录
上一篇:
下一篇:
第4种方法:
{get sql="select * from phpcms2008_content where contentid>$contentid and catid=$catid order by updatetime desc" rows="1"}
{get sql="select * from phpcms_content where contentid<$contentid and catid=$catid order by updatetime desc" rows="1"}
{/get}
好了每一种调用方法都小有一些区别了。
相关文章
- 《崩坏星穹铁道》逐光捡金玩法详解-三大深渊挑战与策略指南 05-05
- jk漫画-禁漫天堂入口隐藏网站 05-05
- 《大店小二》最新每周福利兑换码分享-礼包内容及兑换方式 05-05
- 抖音充值怎么操作-抖音充值入口在哪里 05-05
- 浮生日记app具备哪些功能 05-05
- 《和平精英》枪械精密零件有什么用-武器升级必备材料 05-05