2 个回复
CMSYOU - CMS企业网站定制专家
赞同来自:
<?=intval($_GET['tagid'])?>
[e:loop={"select * from [!db.pre!]enewstags order by tagid",0,24,0}]e/tags/?tagid=" target="_blank" _href="e/tags/?tagid=">[/e:loop]
CMSYOU - CMS企业网站定制专家
赞同来自:
<?php
$tags_sql=$empire->query("select * from phome_enewstags where tagname ='".RepPostVar($_GET['tagname'])."'");
$tags_arr=$empire->fetch($tags_sql);
$tagid=$tags_arr['tagid'];
$tags_ids_arr = array();
?>
[e:loop={"select * from {$dbtbpre}enewstagsdata where tagid ='".$tagid."' order by rand() limit 5",0,24,0}]
<?php
$tags_ids_arr[] = $bqr['id'];
?>
[/e:loop]
<?php
if($tags_ids_arr){
$tags_ids= implode(",",$tags_ids_arr);
}else{
$tags_ids= '';
}
//var_dump($tags_ids);
$lists_text = '';
?>
[e:loop={"select * from {$dbtbpre}ecms_news where id in (".$tags_ids.") order by rand() limit 5",0,24,0}]
<?php
$lists_text.="<li class='list-title'><a href='".$bqr['titleurl']."' title='".$bqr['title']."'>".$bqr['title']."</a></li>";
?>
[/e:loop]
<?php
echo $lists_text;
?>
最新活动:2020-05-09 21:35
浏览:1680 次
关注:2 人
Copyright © 2008-2024 CMSYOU - 互助问答社区 - 粤ICP备10060801号-3 RSS Feed
欢迎加入QQ群(346494585) “让我们一起来学习CMS建站吧!”
要评论问题请先登录或注册