注册 登录
编程论坛 新人交流区

[求助]我的程序问题

easyzy 发布于 2007-10-09 14:26, 1323 次点击


<%
dim founderr,errmsg
founderr=false
errmsg=""

if request.querystring("pic_id")="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>你必须指定操作的对象!"
else
dim picid
if not isInteger(request.querystring("pic_id")) then
founderr=true
errmsg=errmsg+"<br>"+"<li>非法的图片id参数。"
else
picid=cint(request.querystring("pic_id"))
end if
end if

if founderr then
call diserror()
else

sql="select pic_name,pic_url,pic_count from pic where pic_id="&picid
set rs=conn.execute(sql)
dim picurl
picurl=rs("pic_url")
sql="UPDATE pic SET pic_count = pic_count + 1 where pic_id="&picid
conn.execute(sql)

%>


各位大哥,这段程序哪里出错了啊? 图片老是出现这个错误

6 回复
#2
天使漫步云断2007-10-09 14:28
汗  这是新手区  不懂 看的头晕~~~~~~
#3
xindeluoye2007-10-09 14:46
这是什么语言?
我孤陋寡闻 没看过
#4
gavinhuang2007-10-09 15:04
vbscript吧,应该是request.querystring("pic_id")="" 这个条件满足,可能是页面参数传递出了问题。
#5
论坛元老2008-04-02 15:26
路过,顶一下
#6
FFEEDD2008-05-14 16:22
ASP``
程序里``没有指定图片的ID``所以会出错
1