phpcms 实现上一篇下一篇的几种方法!!
第一种方法:
上一篇: 下一篇:{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;} 第二种方法:
这种方法是js调用方法,需要下载附件中的一个php文件,放在网站根目录 上一篇: 下一篇:
第三种方法:
{get sql="select * from phpcms2008_content where contentid>$contentid and
catid=$catid order by updatetime desc" rows="1"} {/get} {get sql="select * from phpcms_content where contentid<$contentid and catid=$catid order by updatetime desc" rows="1"} {/get} (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |