| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 455 人关注过本帖
标题:首页调用商品分数求教.
只看楼主 加入收藏
风雪飞雨
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2007-2-28
收藏
 问题点数:0 回复次数:0 
首页调用商品分数求教.

http://www.cx58.cn
如何将所有个别分类或所有分类的前10个显示在首页..先谢了.
分类字段:sort_id 商品字段:hw_name
"最新加入"栏的代码如下:

<table width="48%" border="0" cellspacing="0" cellpadding="0" height="60" align="center">

<tr>
<%
sql="select top 60 * from hw order by hw_id DESC"
rs.open sql,conn,3,3
if rs.eof then
%>
<td valign="top" align="left" bgcolor="#FFFFFF"><div align="center">
暂无兑换商品<br>
</div></td>
<%end if
i=0
do while not rs.eof
i=i+1
%>
<td align="left" valign="top" bgcolor="#FFFFFF">
<table width="100" border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" height="28" bgcolor="#F7F7F7">

<tr>
<td valign="bottom" align="center" height="28" style="border: 1px dotted #C0C0C0"><b><a title="号码分类:<%=rs("kaiben")%>&nbsp;&nbsp;市场价:<%=rs("pifa")%>&nbsp;&nbsp;&nbsp;会员价:<%=rs("hw_cash")%>" href="views.asp?hw_id=<%=rs("hw_id")%>">
<font size="4"><%=rs("hw_name")%></font></a></b></td>
</tr>
</table> </td>
<%
if (i mod 4=0) and i>=4 then
%>
</tr>
<tr>
<%
end if
if i>=60 then exit do end if
rs.movenext
loop
rs.close
%>
</tr>
</table>

搜索更多相关主题的帖子: 首页 商品 分数 
2007-03-07 23:52
快速回复:首页调用商品分数求教.
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011742 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved