標題: ASP列出表單通用語法 [打印本頁] 作者: 李亮寬 時間: 2018-9-10 16:01 標題: ASP列出表單通用語法 <%
set conn=server.createobject("ADODB.connection")
DBPath = Server.MapPath("資料庫檔名.mdb")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
sql="SELECT 資料表 WHERE id="& id &" and pw="& pw &"ORDER BY id DESC"
set rs=conn.execute(sql)
if not rs.eof then
do while not rs.eof