标题:新手请教读取数据问题
取消只看楼主
flashcsx
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-7-11
结帖率:0
已结贴  问题点数:20 回复次数:0 
新手请教读取数据问题
下面代码读取不到,请高手帮助,谢谢:

<% response.charset="utf-8" %>
<%
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="&Server.MapPath("sxl/userMsg.mdb")
set rs=server.createobject("adodb.recordset")
rs.open "select * from Msg order by id desc",conn,1,1
do while not rs.eof
while not rs.eof
response.Write "#"
response.Write rs("userName")
response.Write "|"
response.Write rs("userMsg")
response.Write "|"
response.Write rs("userTime")
rs.movenext
loop
rs.close
set rs = nothing
set conn = nothing
%>
2011-07-11 19:52



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-345250-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.064066 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved