asp读取数据库方法
大哥给看一下,怎么说 set rs=conn.Execute(sql) 参数不足啊
<%
Dim conn,sql,rs,connstr,num
set conn=server.createobject("ADODB.connection")
connstr="DRIVER={Microsoft Access Driver (*.mdb)}; dbq=" & server.mappath("db1.mdb")
conn.open connstr
sql="select biaoti,wenben from yuanchuang where id order by stockid desc"
set rs=conn.Execute(sql)
for num=0 to rs.fields.Count
Response.write "& rs(num) &"
next
Response.write"</tr>"
rs.movenext
rs.close
conn.close
set conn=nothing
%>

曾经沧海难为水 除去巫山不是云

/dogbbs/GuanShuiQu/200312312162928323.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www./dogbbs/GuanShuiQu/200312312162928323.jpg');}" onmousewheel="return imgzoom(this);" alt="" />