L
lpacec
Unregistered / Unconfirmed
GUEST, unregistred user!
请问怎么样才能在同一个页面中从ACCESS库中调取两张以上的图片。
<%
Set conn = Server.CreateObject("ADODB.Connection")
DBPath = Server.MapPath("whms.mdb")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" &
DBPath
set rs=server.createobject("ADODB.recordset")
sql="select * from pic where pid=10"
rs.open sql,conn,1,1
do while not rs.EOF
Response.ContentType = "image/jpeg"
Response.BinaryWrite rs("pic")
rs.MoveNext
loop
rs.close
set rs=nothing
set connGraph=nothing
%>
这样不管用,只能显示一张。请帮忙!!!!!!!!!!!!
<%
Set conn = Server.CreateObject("ADODB.Connection")
DBPath = Server.MapPath("whms.mdb")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" &
DBPath
set rs=server.createobject("ADODB.recordset")
sql="select * from pic where pid=10"
rs.open sql,conn,1,1
do while not rs.EOF
Response.ContentType = "image/jpeg"
Response.BinaryWrite rs("pic")
rs.MoveNext
loop
rs.close
set rs=nothing
set connGraph=nothing
%>
这样不管用,只能显示一张。请帮忙!!!!!!!!!!!!