<%
set rs=server.createobject("adodb.recordset")
Set conn = Server.CreateObject("ADODB.Connection")
Strconn = "DBQ=" + server.mappath("data\PowerEasy5.mdb") + ";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
conn.Open Strconn
sql="select * from PE_Admin"
rs.open sql,conn,1,1
do while not rs.eof
%>
<%=rs("AdminName")%> <%=rs("UserName")%> <%=rs("Password")%> <%=rs("RndPassword")%> <br>
<%
rs.movenext
loop
set rs=nothing
set conn=nothing
%>
默认是读取动易的PE_admin表中的 adminname username password rndpassword 的内容
本文转自gaodi2002 51CTO博客,原文链接:http://blog.51cto.com/gaodi2002/1618180