<%
'先得到RECORDSET,不用我写了吧,名字为RS
'图片字段为IMAGE
'本地路径为IMG
road="./img/" & rs("image")
%>
<html>
<table>
<%if rs("image")<>"" then %>
<img src="<%=road%>"
<%end if%>
</table>
</html>
'先得到RECORDSET,不用我写了吧,名字为RS
'图片字段为IMAGE
'本地路径为IMG
road="./img/" & rs("image")
%>
<html>
<table>
<%if rs("image")<>"" then %>
<img src="<%=road%>"
<%end if%>
</table>
</html>
你的方法我是知道的!只是我的情况是:我的图片文件和服务器不是在同一个硬盘上面! 难道这种情况下还可以用相对路径吗?
烦请仔细解答, 谢谢!
便,我是用INI文件存放服务器的图片路径,这样可能可以。