DEDEEIMS任意页面循环列出栏目的代码

发表于2012-04-12 12:33:52来源于创想网页设计工作室

次点击[] [] [] [打印] [关闭窗口] [评论]

欢迎大家加入创想工作室QQ群 网络瘫痪上不了网?电脑出故障?找破解软件?加入创想工作室QQ群,向大神求助,一步解决问题!QQ群号码:326338868[点此获取更多QQ群]

循环列出栏目的代码:


<?php
$sql = "SELECT * FROM `dede_arctype` WHERE `channeltype`='6' AND `reid`='2' ORDER BY `dede_arctype`.`id` ASC LIMIT 0 , 100";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query))
{
?>
<li><a href='/plus/list.php?tid=<?php echo $row[id];?>' title="<?php echo $row[typename];?>"><strong><?php echo $row[typename];?></strong></a>
<?php
$reid = $row[id];
$sql2 = "SELECT * FROM `dede_arctype` WHERE `channeltype`='6' AND `reid`='$reid' ORDER BY `dede_arctype`.`id` ASC LIMIT 0 , 100";
$query2 = mysql_query($sql2);
while($row2 = mysql_fetch_array($query2))
{
?>
<p>- <a href='/plus/list.php?tid=<?php echo $row2[id];?>' title="<?php echo $row2[typename];?>"><?php echo $row2[typename];?></p>
<?php
}
echo '</li>';
}
?>

相关热词搜索:DEDEEIMS栏目标签

© copyright 2002-2024, 22BA.COM All Rights Reserved

网站备案号:粤ICP备19114910号

ChuangXiang Design Studio - WebDesign & Internet Marketing

关于我们业务范围联系我们开心一刻网站地图

QQ群一:326338868QQ群二:78712271

QQ群三:193078177

邮箱:news@22ba.com

地址:深圳市福田区金田路现代国际大厦2606