<%
set rs1=server.createobject("adodb.recordset")
sql1="select * from anli where id="&request.querystring("id")
rs1.open sql1,conn,1,1
picaddress = "uppic\rs1('pic')"
set DeleteFileObject = Server.CreateObject("Scripting.FileSystemObject")
DeleteFileObject.DeleteFile(Server.MapPath(picaddress))
set rs=server.createobject("adodb.recordset")
sql="delete from anli where id="&request.querystring("id")
rs.open sql,conn,1,3
response.write(Server.MapPath(picaddress))
response.end
%>
错误提示:找不到文件
把红色部分注实掉 picaddress的路径是:F:\myweb\weisi1\pic\uppic\rs1('pic')
数据库里面pic里面是:uppic\20061410481573040.jpg
哪里有问题?帮帮我,找找错。