<?php
$sql=mysql_query("select id,pic,news,more1,title from ad where key=1 and newssort=1 and smt_pic<>'' order by id ");
$i=1;
while($info=mysql_fetch_array($sql)){
?>
<li <?php if ($i==1) class="current";else class="normal"; ?>><span style="color:#333333"><?php echo $info[title]; ?></span></li>
<?php
$i=$i+1;
}?>
为啥上面这个代码不行啊不知道哪里错了谢谢老师了 |