数据分页显示,下一页没有显示数据

来源:百度知道 编辑:UC知道 时间:2024/06/25 11:51:16
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" >
<tr> <td valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><br>
<%set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.recordcount=0 then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
<tr><td align=center>暂无信息</td></tr>
</table>
<%
else
rs.PageSize =30
iCount=rs.RecordCount
iPageSize=rs.PageSize
maxpage=rs.PageCount
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
pa

你的sql语句呢?

完整的代码如下:

<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td height=28 ><table width="100%" height="28" cellpadding="0" cellspacing="0">
<tr>

<td background="images/bgtitbg.jpg" align="left">
<font color="#FFFFFF">
 <a href=index.asp><font color="#FFFFFF">首页</font></a> <font color="#FFFFFF">>> <%=common_name%></font>
</td>

</tr>
</table></td>
</tr>
<tr>

<td valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><br>
<%