asp网页分页代码出现问题 Division by zero

来源:百度知道 编辑:UC知道 时间:2024/06/24 01:14:16
其代码如下:

-------------------------------------

<%

Set ObjReference = Server.CreateObject("DllStock.LAspFLib")

Dim conUser
Dim rstInfo
Dim m_sql

set rstInfo = Server.CreateObject ("ADODB.RecordSet")
m_sql = "SELECT * FROM RY_JCSJ "
rstInfo.Open m_sql,con,1,1' adOpenDynamic

if rstInfo.EOF then
Response.Write "<BR>没有任何信息!"
showContent
' Response.Write "<BR><A href='javascript:history.back()'>返回</A>"
'Response.End
else
totalPut=rstInfo.recordcount
totalPut=rstInfo.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if

end

ASP 分页类 Kin_Db_Pager
http://down.chinaz.com/soft/24767.htm

这个很好呀,省事多了,这是我用过最好用的分页类了。

提示的意思是说你有什么地方把0做为被除数了;
你的代码不完整吧.
要么拿出来完事代码;
要么查一下你的代码里哪里不小心除以零了

既然提示了在172行
那就上下再看看
会不会是字母拼错之类的低级错误

看看字母字符:重新在写写 SQL等是否正确