相关阅读
field('catid,catname,url')->where("find_in_set('$article_key',tag)")->order('catid desc')->select();
foreach ($lp_list as $n=>$val)
{
echo '
> '.$val['catname'].'
';
}
$article_list = M('content')->field('contentid,title')->where("find_in_set('$article_key',tag) and status=1")->order('contentid desc')->select();
foreach ($article_list as $n => $val)
{
echo '
> '.$val['title'].'
';
}
?>