大佬教程收集整理的这篇文章主要介绍了phpcms 实现上一篇下一篇的几种方法!!,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
第一种方法:
上一篇:
{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;}
{/get}{if
$front!=1}无{/if}
下一篇:{get sql="select
contentid,title from phpcms_content where contentid > '$contentid'
and catid='$catid' order by contentid asc" rows="1" return="s"}{php
$front=2;}
{/get}{if
$front!=2}无{/if}
这种方法是js调用方法,需要下载附件中的一个php文件,放在网站根目录
上一篇:
下一篇:
第三种方法:
{get sql="SELEct * from phpcms2008_content where contentid>$contentid and
catid=$catid order by updatetiR_295_11845@e desc" rows="1"}
以上是大佬教程为你收集整理的phpcms 实现上一篇下一篇的几种方法!!全部内容,希望文章能够帮你解决phpcms 实现上一篇下一篇的几种方法!!所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。