phpcms文章页如何显示上一页下一页
本文主要分享了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}
本文由主机测评网发布,不代表主机测评网立场,转载联系作者并注明出处:https://zhuji.jb51.net/phpcms/7116.html