phpcms文章页如何显示上一页下一页
摘要:本文主要分享了phpcms文章页显示上一页下一页的代码如下:{getsql="select*fromphpcms_contentwherec...
本文主要分享了phpcms文章页显示上一页下一页的代码如下:
{get sql="select * from phpcms_content where contentid>$contentid and catid=$catid order by contentid" rows="1"}<div>上一条:<a href="{$r[url]}">{str_cut($r[title], 50,'')}</a></div>{/get}
{get sql="select * from phpcms_content where contentid<$contentid and catid=$catid order by contentid desc" rows="1"}<div>下一条:<a href="{$r[url]}">{str_cut($r[title],50,'')}</a></div>{/get}
【phpcms文章页如何显示上一页下一页】相关文章:
★ PhpCms数据库管理设置教程 如何设置PhpCms数据库
★ PhpCms系统设置:镜像下载模式 如何设置PhpCms镜像下载模式