我这个留言册很简单,只用了一个分页技术。可是怎么着也分页不了
请各位帮助指点,网站测试地址[url=[连接]
在原代码如下:
<%
MaxPerPage=10
dim totalPut
dim CurrentPage
dim TotalPages
if (request.QueryString("page"))<>""then
currentPage=cint(request.QueryString("page"))
else
currentPage=1
end if
set rs=server.createobject("adodb.recordset")
sqlstr="select id from message where name='"&request.form("txt_name")&"' and message='"&request.form("txt_message")&"' order by id desc"
rs.open sqlstr,conn,1,1
if rs.eof and request.form("submit")="确定" then
rs.close
sqlstr="insert into message(name,company,phone,fax,email,message) values('" & request.form("txt_name") & "','" & request.form("txt_company") & "','" & request.form("txt_phone") & "','" & request.form("txt_fax") & "','" & request.form("txt_email")& "','" & request.form("txt_message") & "')"
rs.open sqlstr,conn,1,3
else
rs.close
end if
sqlstr="select id,name,company,phone,fax,email,message,time from message order by id desc"
rs.open sqlstr,conn,1,1
%>
通力天光-无锡数码影像站
Copyright© www.suma8.com 2003 All rights reserved. Designed by noshadow QQ:2654720 Email:flashzi@hotmail.com |