本文主要分享了phpcms文章页显示上一页下一页的代码如下:
复制代码代码如下:
{get sql="select * from phpcms_content where contentid>$contentid and catid=$catid order by contentid" rows="1"}上一条:{str_cut($r[title], 50,'')}<>{/get}
{get sql="select * from phpcms_content where contentid<$contentid and catid=$catid order by contentid desc" rows="1"}下一条:{str_cut($r[title],50,'')}<>{/get}
复制代码代码如下:
{get sql="select * from phpcms_content where contentid>$contentid and catid=$catid order by contentid" rows="1"}上一条:{str_cut($r[title], 50,'')}<>{/get}
{get sql="select * from phpcms_content where contentid<$contentid and catid=$catid order by contentid desc" rows="1"}下一条:{str_cut($r[title],50,'')}<>{/get}
关键字词: