1第一种
<p>上一篇:
{get sql = "select contentid,catid,url,titlee from phpcms_content where contentid <'$contentid' and catid='$catid' order by contentid desc" rows="1" return="v"}{php $front=1;}<a href="{$v[url]}">{$v[title]}</a> {/get}{if $front!=1}无{/if}</p>
<p>下一篇:
{get sql = "select contentid,catid,url,titlee from phpcms_content where contentid >' $contentid' and catid=' $catid' order by contentid desc" rows="1" retu