<!--#include file="conn.asp"-->
<%
content=request.Form("content")
class1=request.Form("class1")
sql="Select BellID,SongName,SingerName,Price,AvailabilityDate,SpName,DiscCompany,SingType,Region,DownloadsNumber from BellData where"
If classl="歌曲名称" Then
sql=sql&" SongName like '%"&content&"%'"
End If
If class1="歌手" Then
sql=sql&" SingerName like '%"&content&"%'"
End If
If class1="提供商" Then
sql=sql&" SpName like '%"&content&"%'"
End If
If class1="日期" Then
sql=sql&" AvailabilityDate like '%"&content&"%'"
End If
sql=sql&" order by DownloadsNumber DESC"
'response.Write sql
'response.End()
set rs=Server.CreateObject("Adodb.Recordset")
rs.Open sql,Conn,1,1
if rs.Eof and rs.Bof Then
Response.Write"没有相关记录"
Else
response.End()
counts=20
rs.pagesize=counts
allpage=rs.pagecount
page=request("page")
If not IsNumeric(page) Then
page=1
End if
if IsEmpty(page)Or CInt(page)<1 Then
page=1
elseif CInt(page)>=allpage Then
page=allpage
End If
rs.absolutepage=page
%>
<table width="900" border="1">
<tr>
<td><div align="center">铃声编号</div></td>
<td><div align="center">铃声名称</div></td>
<td><div align="center">歌手姓名</div></td>
<td><div align="center">¥价格</div></td>
<td><div align="center">有效期</div></td>
<td><div align="center">铃音提供商(sp)</div></td>
<td><div align="center">唱片公司</div></td>
<td><div align="center">铃音类型</div></td>
<td><div align="center">接入地区</div></td>
<td><div align="center">定购次数</div></td>
</tr>
<%
do while not rs.eof and counts>0 %>
<tr>
<td><div align="center"><%=rs("BellID")%></div></td>
<td><div align="center"><%=rs("SongName")%></div></td>
<td><div align="center"><%=rs("SingerName")%></div></td>
<td><div align="center">¥:<%=rs("Price")%></div></td>
<td><div align="center"><%=rs("AvailabilityDate")%></div></td>
<td><div align="center"><%=rs("SpName")%></div></td>
<td><div align="center"><%=rs("DiscCompany")%></div></td>
<td><div align="center"><%=rs("SingType")%></div></td>
<td><div align="center"><%=rs("Region")%></div></td>
<td><div align="center"><%=rs("DownloadsNumber")%></div></td>
</tr>
<%
counts=counts-1
rs.movenext
loop
end if
%>
</table>
<%
If page=1 Then
response.write("<a href=admin_manage.asp>首页</a>")
Else
response.write("<a href=admin_manage.asp?page=1>首页</a><a href=admin_manage.asp?page="&page-1&">上一页</a>")
End If
response.write("第"&page&"页")
If page=allpage Then
response.write("<a href =admin_manage.asp>尾页</a>")
Else
response.write("<a href=admin_manage.asp?page="&page+1&">下一页</a><a href=admin_manage.asp?page="&allpage&">尾页</a>")
End if
%>
前面的错误已经找到了?现在错误到这里了.
<%
do while not rs.eof and counts>0 %>
什么也不显示了,只是白白一片