此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
楼主【xingliang211】截止到2008-06-27 10:14:00的历史汇总数据(不包括此帖):
发帖数:0 发帖分:0
结贴数:0 结贴分:0
未结数:0 未结分:0
结贴率:-------------------结分率:-------------------
如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
楼主【xingliang211】截止到2008-06-27 10:14:00的历史汇总数据(不包括此帖):
发帖数:0 发帖分:0
结贴数:0 结贴分:0
未结数:0 未结分:0
结贴率:-------------------结分率:-------------------
如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
<?
$list =tep_db_query($sql);
$j =5;
while($list_set = tep_db_fetch_array($list) && $j--)//从数据库里面读取数据然后显示到表格里面(内循环) {
$sptp = $list_set['sptp'];
$lpmc = $list_set['lpmc'];
?>
......
</TD>
<?
//if($j%5 == 0)
//break;$j++;
} ?>
</TR>
......
$i = 0;
while($i < $rows){ //外面的while 循环
?>
<div class="line" id="product">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?
$list = tep_db_query($sql);
$j = 0;
while($list_set = tep_db_fetch_array($list)) { //从数据库里面读取数据然后显示到表格里面(内循环)
$sptp = $list_set['sptp'];
$lpmc = $list_set['lpmc'];
?>
<td align="center">
<div class="pbox">
<a href="#"><img src=" <?=$sptp?>" alt="" width="96" height="97" border="0" class="img"></a>
<p class="name"><a href="#"><?=$lpmc?></a></p>
<p class="padbottom"> <strong class="jg">25 </strong>积分+ <strong>100元 </strong> </p>
<a href="#"><img src="images/btn_sc.gif" width="55" height="22" border="0"></a>
</div>
</td>
<?
$j ++;
if(($j - 1) != 0 && ($i - 1) % 5 == 0) {
echo '</tr><tr>';
}
}?>
</tr>
</table>
</div>
<div class="line" id="product"></div>
<?
$i ++;
}