帮忙写ASP查询分页代码,谢谢!

来源:百度知道 编辑:UC知道 时间:2024/05/13 07:46:46
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn1.asp" -->
<%
Dim a1__MMColParam
a1__MMColParam = "1"
If (Request.Form("tuhao") <> "") Then
a1__MMColParam = Request.Form("tuhao")
End If
%>
<%
Dim a1
Dim a1_numRows

Set a1 = Server.CreateObject("ADODB.Recordset")
a1.ActiveConnection = MM_conn1_STRING
a1.Source = "SELECT * FROM 库存 WHERE 配件图号 LIKE '%" + Replace(a1__MMColParam, "'", "''") + "%' ORDER BY 配件图号 ASC"
a1.CursorType = 0
a1.CursorLocation = 2
a1.LockType = 1
a1.Open()

a1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = 10
Repeat1__index = 0
a1_numRows = a1_numRows + Repeat1__numRows
%>
<!DOCTY

悬赏分都没 谁愿意花时间白写啊 白痴

楼上这位同学。分那重要么。
这是互相帮忙的平台。拜托,为勒分的话,你可以自己弄一个小网站给自1000000分啊。
等你不会的东西急着问别人时,奖励少勒,别人都不帮你。