相关代码 |
|
set rs=server.createobject("adodb.recordset") conn = "DBQ=" + server.mappath("mydb.mdb") + ";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};" sql="select * from message order by id desc" rs.Open sql,conn,1,1 do while not rs.eof Response.Write rs("name")&"说:"&rs("message")&"" rs.MoveNext loop set rs=nothing %>