ASP中怎样给从数据库中显示出来的图片添加链接
同题
------解决方案-------------------- <img src= "show.asp?id= <%=id%> " border= "0 " width= "宽 " height= "高 ">
show.asp内容
<!-- #include file= "conn.asp " -->
<%
set rec=server.createobject( "ADODB.recordset ")
id=request( "id ")
strsql= "select id,img as expr1 from tablename where id= "&id
rec.open strsql,conn,1,1
Response.BinaryWrite rec( "expr1 ").getChunk(7500000)
rec.close
set rec=nothing
%>
------解决方案-------------------- <a href= ' '> <img src= "show.asp?id= <%=id%> " border= "0 " width= "宽 " height= "高 "> </a>