标题:[求助]LOOP 的问题?
取消只看楼主
alanbelive
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-6-12
 问题点数:0 回复次数:0 
[求助]LOOP 的问题?

<%
dim rs
set Rs=server.CreateObject("ADODB.RecordSet")
'if id<>"" then
'sql="select * from product where id="&id
'else
sql="select * from product where typeid=447 order by Id desc"
'end if
Rs.Open sql,conn,1,1
if rs.eof then
response.write "<tr><td align=center>目前还没有内容。<br></td></tr>"
else
rs.pagesize=5
'顯示10條信息
ipage=clng(request("page"))
'response.write ipage
if ipage<=0 then
ipage=1
end if

if ipage>=rs.pagecount then
ipage=rs.pagecount
end if

rs.absolutepage=ipage
rowcount=rs.pagesize
do while not rs.eof and rowcount>0
if rowcount>8 then

end if
%>
<tr>
<td width="47%" valign="top" class="biank">
<% if not Rs.eof then%>
<table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="t1Copy2"><a href="products_detail.asp?id=<%=Rs("id")%>&fid=<%=Rs("typeid")%>" class="t5" style="cousor:hand;"><img id="Main_Img" src="<%if Rs("Main_Img") <> "" then
response.Write(replace(Rs("Main_Img"),"../../upimages","manage/upimages"))
else
response.Write("images/nopic_e.jpg")
end if%>" border="0" width="90"></a></td>
</tr>
</table>
<table width="95%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td class="t1Copy2"><span class="biankCopy"><span class="t7"><%=Rs("no")%></span></span> </td>
</tr>
</table>

</td>
</tr>

</table></td>
</tr>
<tr valign="top">
<td height="120" colspan="3"><span class="biank">
<%
rs.movenext()
rowcount=rowcount-1
loop
%>
为什么还是错误显示缺少DO

搜索更多相关主题的帖子: LOOP 
2006-06-12 18:08



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-71714-1-1.html




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

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