为什么会出这样的错误呢,难道是路径出错了吗?
Microsoft VBScript 运行时错误 错误 '800a000d' 类型不匹配: 'server.mappath'
/User/Company/Imgs.asp,行 126
以经上传空间了,在上面注册会员后有个自己的管理后台但是我想删除图片时就出错了,加粗的是126行谢谢!!!
sub del()
sql="select * from companynames where user_names='"&session("company_user_names")&"'"
set rs = Server.CreateObject("ADODB.Recordset")
rs.open sql, conn,1,3
set fso=server.CreateObject("scripting.filesystemobject")
fso.deletefile(server.mappath(rs("imgs")))
set fso=nothing
rs("imgs")="还未上传"
rs.update
response.write "<script language='javascript'>alert('此条记录已成功删除!');window.location.href='?';</script>"
end sub