有二个方法,一个就是
的分出几页,只显示其中的一个用JS来控制显示的用JAVASCRIPT搜索一个数据库,可以看到搜索结果,但是只能看到首页,点"第一页""上一页""下一页""最后页"什么都没有.代码是DREAMWEAVER生成的,相关代码如下:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<%
var Recordset1__MMColParam = "1";
if (String(Request.Form("word_rc")) != "undefined" &&
String(Request.Form("word_rc")) != "") {
Recordset1__MMColParam = String(Request.Form("word_rc"));
}
%>
<%
var Recordset1 = Server.CreateObject("ADODB.Recordset");
Recordset1.ActiveConnection = MM_qiuz_STRING;
Recordset1.Source = "SELECT * FROM qiuzhi WHERE 项目类型 = '"+ Recordset1__MMColParam.replace(/'/g, "''") + "' ORDER BY 发布时间 DESC";
Recordset1.CursorType = 0;
Recordset1.CursorLocation = 2;
Recordset1.LockType = 1;
Recordset1.Open();
var Recordset1_numRows = 0;
%>
<%
var Repeat1__numRows = 5;
var Repeat1__index = 0;
Recordset1_numRows += Repeat1__numRows;
%>
------------------------------------------------------------