大家来找茬

l07162220 l07162220 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
请大家帮忙看看这段分页代码的问题 请问是分页写的有问题还是怎么了 始终拿不到值

有时候报连接关闭的错 有时候又报ASP 0113 (0x80004005) 连接超时的错
<!--#include file="./conn.asp" -->
<html>
<head>
<title>Join UCLEF</title>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css/eStyle_china.css" rel="stylesheet" type="text/css">
<link href="../css/css.css" rel="stylesheet" type="text/css">

</head>
<body><center>

<table width="1000" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="180" align="center" valign="top" bgcolor="#EFEFEF" >
<table width="180" border="0" cellspacing="0" cellpadding="0" >
<tr >
<td height="30" background="../images/LeftNavBg.gif" align="center"><span class="LeftTitle1">Membership </span></td>
</tr>
<tr>
<td>
<table width="180" height="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td align="center" valign="top" >
<table width="180" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="18"></td>
</tr>
</table>

<table width="164" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="15"></td>
</tr>
<tr>
<td id="textindent" height="27" background="../images/zuodhditu.gif"><A HREF="membermanage.asp">The Rights of Members</A></td>
</tr>
</table>

<table width="164" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="15"></td>
</tr>
<tr>
<td id="textindent" height="27" background="../images/zuodhditu.gif"><A HREF="membermanage.asp"><B>Membership Types</B> </A></td>
</tr>
</table>

<table width="164" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="15"></td>
</tr>
<tr>
<td id="textindent" height="27" background="../images/zuodhditu.gif"><A HREF="membermanage.asp">Dues Waiver Program</A></td>
</tr>
</table>


<table width="164" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="15"></td>
</tr>
<tr>
<td id="textindent" height="27" background="../images/zuodhditu.gif"><A HREF="membermanage.asp">Membership Application </A></td>
</tr>
</table>

</td>
</tr>
</table></td>
</tr>
</table>
<br>
</td>
<td width="780" align="center" valign="top">

<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" background="../images/NavBg.gif">
<tr>
<td width="3" bgcolor="#e9e8e8"></td>
<td>    <img src="../images/jian2.gif"> <a href="../eindex.htm">Home</a> > Membership </td>
</tr>
</table>


<form name=form1 method="post">

<table width="800" border="1" cellspacing="0" cellpadding="6" bordercolor="#999999" bordercolordark="#ffffff" align=center>
<tr align='center'>

<TD colspan="10" align=left>Member Manage</a></TD>
</tr>
<TR class="tabletitlebg" align=center>

<TD width=30>choose</TD>
<TD width=80>First Name</TD>
<TD width=80>Last Name</TD>

</TR>

<%

dim currentPage,totalPage,totalCount,perPageCount,tmpCount,perLineCount,tmpLineCount
set rs=Server.CreateObject("adodb.recordset")

rs.Open "select count(*) as num from memberinfo",conn,1,3
totalCount = rs(0)
rs.close
set rs=nothing

currentPage=trim(request("page"))
perPageCount = 10 '每页显示的条数
perLineCount = 1 '每行显示的条数
tmpLineCount = 3
if currentPage="" then
currentPage=1
else
currentPage=Cint(currentPage)
end if

set rs=Server.CreateObject("adodb.recordset")
dim tmpsql,tmpform,tmptotalcount
tmpform = "memberinfo"
tmptotalcount = (currentPage-1)*perPageCount
if currentPage=1 then
tmpsql = "select top " & perPageCount & " * from " & tmpform & " order by id"
else
tmpsql = "select top " & perPageCount & " * from " & tmpform & " where memberid not in (select top " & tmptotalcount & " memberid from " & tmpform & " order by memberid) order by memberid"
end if
rs.Open tmpsql,conn,1,3


totalPage = totalCount\perPageCount

if (totalCount/perPageCount)<>0 then
totalPage = totalPage + 1
end if

if rs.RecordCount=0 then
response.write "<tr><td colspan='9'><br>nothing<br></td></tr>"
response.write "<td width=80>" & rs("lastname")& " </td>"
end if

do while not rs.eof
Response.Write"<td><INPUT type=checkbox name='delid' value='" & rs("memberid")&"'></td>"
Response.Write"<td width=80>" & rs("lastname")& " </td>"
Response.Write"<td width=150>" & rs("fistname")& " </td>"

rs.movenext
tmpCount=tmpCount+1
if tmpCount>=perPageCount then exit do
loop

rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<tr>

<td colspan="9">
<table width="100%%" border="0">
<tr class="bgFill" align="center">
<td width="27%" align="left"> 第 <%=currentPage%>页
  
共<%=totalPage%> 页

</td>
<td width="73%">
<div align="right">
<%
if currentPage<>1 then
%>
<button id="<%=currentPage-1%>" class="keybutton" onClick="goNext(this.getAttribute('id'),'<%= key %>');">上一页</button>
<% end if %>
<%if currentPage<>totalPage then %>
<button id="<%=currentPage+1%>" class="keybutton" onClick="goNext(this.getAttribute('id'),'<%= key %>');">下一页</button>
<% end if %>
</div>
</td>
</tr>
<INPUT id=totalpagenum type=hidden value=3 name=totalpagenum>
<INPUT id=nowpagenum type=hidden value=0 name=nowpagenum>
</table>
</td>
</tr>
</TABLE>
<table width="95%" align=center >
<tr>
<td width="20%" height="18" class="tabletdhead" align=left colspan="9">
<input type="button" name="Submit" value=" 新 增 " class="button1" >    
<input type="button" name="Submit" value=" 删 除 " class="button1" >    
</td>
<td height="18" class="tabletdhead" colspan=9 align=right> 

</td>
</tr>

</table>
</form>
</body>
</html>
...全文

相关推荐

图片找茬辅助工具--只要是屏幕上能显示出来的都能帮你找

标签“找茬”、“找茬工具”和“找茬助手”进一步明确了这款软件的主要用途,即协助用户进行图像比较。

blueparticle

QQ游戏 找茬脚本

前言 毕设干扰了前一段记录笔记的进度,闲暇时刻用找茬消遣,但有时发现五处不同仅仅找出两三处,这种呼之欲出却无法求得的感觉非常难受。于是制作了适用于QQ游戏大厅–&gt;大家一起来找茬 的辅助器,此篇博客的笔记由函数与打包组成。 思路 界面–&gt;屏幕截取–&gt;对比找出不同–&gt;鼠标自动点击 一、界面 运用最近接触到的pyqt5,界面的设计要点:小巧。 class window(QMain...

想说藏话

C#QQ找茬助手(一)开始作弊!

题记:昨晚跟舍友空虚了,然后一起玩了QQ的大家来找茬,然后…居然又吸引了3个“同道中人”一起,大家5双眼睛极度犀利。群众的眼睛是雪亮的,跟别人玩找得那叫一个速度,不过也有微小的地方实在找不到,当然我们也被别人秒过。在惊讶之余我思考了一下,虽然QQ有放大镜这种神物,毕竟数量有限,他们如何做到找得如此之快?于是就有了这个小程序。提示:仅用于研究,版权所有转载需注明出处,欢迎交流这是第一篇,仅仅展示基本用处,还有许多不完善的地方,欢迎拍砖。大家都对找茬游戏耳熟能详,这里不再介绍。(一)准备我介绍一下我的思想:1、

gaaranaruto

微信小游戏找茬最新源码

微信小游戏找茬是一款深受用户喜爱的轻量级娱乐应用,其源码的分析与学习能够帮助开发者深入了解小游戏的开发流程和技术细节。以下将详细介绍微信小游戏的开发环境、基本架构、核心技术和找茬游戏的实现原理。1.

c317791424

Scratch之《大家来找茬》

在这个“大家来找茬”项目中,我们可以看到如何利用Scratch来制作一款简单但有趣的互动游戏。在“大家来找茬”游戏中,玩家通常需要在两张看似相同的图片中找出差异。

Bear
评论 7
收藏 已收藏
分享
返回顶部
l07162220
ASP 28,401 成员 356,940 内容