日期: 2021-11-29 22:10:49 人气: -
<div>
<dir>热门资讯</dir>
<?
$query=$db->query("select * from ".$LG->table("article")." where class like '00030002%' order by addtime desc limit 6");
$id = 0;
while($rs=$db->fetchrow($query)){
$id = $rs['id'];
?>
<div>
<a href="<? echo getarurl($rs["aid"]);?>"><? echo $rs["title"];?></a>
</div>
<? }?>
</div>
<div>
<dir>热门资讯</dir>
<?
$query=$db->query("select * from ".$LG->table("article")." where class like '00030002%' order by addtime desc limit 6");
$id = 0;
$i=0;
while($rs=$db->fetchrow($query)){
$id = $rs['id'];
?>
<div>
<?if ($i ==0) {
?><img src="<?php echo $rs['pic']?>" height="200px" alt="<?php echo $rs['title']?>"/><br>
<a href="<? echo getarurl($rs["aid"]);?>"><? echo $rs["title"];?></a>
<?
}else{?>
<a href="<? echo getarurl($rs["aid"]);?>"><? echo $rs["title"];?></a>
<?}?>
</div>
<? $i++;}?>
</div>