标题:[求助]发生意外是什么样的错误呀?急~!
只看楼主
lijianlan
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2006-3-27
 问题点数:0 回复次数:0 
[求助]发生意外是什么样的错误呀?急~!
if request("table")="user" then
id=request("id")
sql="select img from [sold] where belogto='"&id&"'"
set rs = server.CreateObject("adodb.recordset")
rs.open sql, conn, 1, 2
if trim(rs("img"))<>"" then '--------出错的语句---------
pic=rs("img")
path= server.MapPath (pic)
set objfso = server.createobject("scripting.FileSystemObject")
if objfso.FileExists(path) then
objfso.DeleteFile (path)
end if
set objfso = nothing
end if
rs.close
set rs=nothing
conn.execute "delete from [user] where userid='"&id&"'"
conn.execute "delete from [sold] where belogto='"&id&"'"
conn.execute "delete from [want] where belogto='"&id&"'"
end if

搜索更多相关主题的帖子: sql request where 
2006-04-10 13:57



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-56507-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.285557 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved