<% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open(Server.Mappath("/db/demo.mdb")) set rs = Server.CreateObject("ADODB.recordset") rs.Open "SELECT WebID, WebName FROM Web", conn str=rs.GetString(,,"",""," ") %> <%Response.Write(str)%> <% rs.close conn.close set rs = Nothing set conn = Nothing %> 效果会显示在右边 Create by 软晨网(RuanChen.com)
效果会显示在右边 Create by 软晨网(RuanChen.com)