<!--#include file="db_class.asp" -->
<%
‘当前页面数据
nPath = "......"
‘t模块的数据
tMdb = "newboxnWorkmytestm.mdb"
set db = new db_class
‘db.conn_open(lib.dbPath)‘打开数据库
db.conn_open(server.MapPath(nPath+tMdb))‘打开数据库
‘获得数据
set rs = db.getRsById(rs,"sysT",1)
%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<%=rs("mStr")%>
</body>
</html>
<%
db.conn_close()
%>
asp 数据库 模块化 - 思路是没一个页面有一个自己的数据类 这里用nPath表示
标签:
本文系统来源:http://www.cnblogs.com/pengpengsay/p/4764422.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!