摘要: fontnum thenif len(str) mod fontnum >0 then '计算总页数pagecontent=len(str)\fontnum+1elsepagecontent=len(str)\fontnumend ifDim arr()ReDim arr(pagecontent)for m = 1 to pagecontentif m pagecontent thenarr(m... 阅读全文
posted @ 2008-03-28 11:49 天涯海客 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 如果是查询传入的变量,则如下:strau=request.form("author")strsql="select * from book whereauthor=’"&strau&"’"如果查询的是数字,则:intID=request.form("id")strsql="select * from book where id="&intID 阅读全文
posted @ 2008-03-28 10:47 天涯海客 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 。数据库的连接方法:1.Access数据库的DSN-less连接方法:set adocon=Server.Createobject("adodb.connection")adoconn.Open"Driver={Microsoft AccessDriver(*.mdb)};DBQ="&_Server.MapPath("数据库所在路径")2.Access OLE DB连接方法:set adocon... 阅读全文
posted @ 2008-03-28 09:51 天涯海客 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 数据库连接:打开数据库:exec="select * from 数据库表"set rs=server.createobject("adodb.recordset")rs.open exec,conn,1,1参数1,1为读取读取内容格式:添加记录处理程序:搜索处理程序:'页面搜索到的内容导出来删除记录处理程序:修改记录处理程序:修改记录执行程序:输入ID号页面>>>导出相对应ID数据>>>>>>直接... 阅读全文
posted @ 2008-03-28 09:48 天涯海客 阅读(115) 评论(0) 推荐(0) 编辑