日期:2014-05-17  浏览次数:20825 次

我想找出全部的内容,可为什么 page_count 的值不变
<!--#include   file= "inc_Cmore.asp "-->
<!--#include   file= "UBB.asp "-->
<%
dim   page_count

call   bodySkin()

sub   pageContent()
showMsg()
end   sub

function   showMsg()

sql= "select   *   from   [d_Question]   where   topicorder   =   1   order   by   [usertime]   desc "
set   rs=server.createobject( "adodb.recordset ")
rs.open   sql,conn,1,3

while   (not   rs.eof)   and   (not   page_count   =   rs.pagesize)

dim   usertitle,usertime,CID
CID   =   rs( "id ")
usertitle   =   HTMLencode(rs( "usertitle "))
usertime   =   rs( "usertime ")

%>
    <div   class= "comment_notice ">   <!--   标题、时间、留言内容、回复     -->
<div   class= "biaoti ">
<a   href= "comment_detail.asp?id= <%   =   CID   %> "   target= "_blank "> <%=usertitle%> </a> &nbsp;&nbsp;&nbsp;&nbsp; <span   class= "notice_time "> <span   class= "notice_comment "> <%=usertime%> </span> </span> </div>
<div   class= "bar "> </div>
    </div>
<%
page_count   =   page_count   +   1
response.write(page_count)
rs.movenext
wend

rs.close

end   function

%>

------解决方案--------------------
while (not rs.eof) and (not page_count = rs.pagesize)
这上面的是判断吧,不应该是一个"="吧