编程论坛's Archiver

easyzy 发表于 2007-10-9 14:26

[求助]我的程序问题

<P><BR>&lt;%<BR>dim founderr,errmsg<BR>founderr=false<BR>errmsg=""</P>
<P>if request.querystring("pic_id")="" then<BR>  founderr=true<BR>  errmsg=errmsg+"&lt;br&gt;"+"&lt;li&gt;你必须指定操作的对象!"<BR>else<BR>  dim picid<BR>  if not isInteger(request.querystring("pic_id")) then<BR>    founderr=true<BR>    errmsg=errmsg+"&lt;br&gt;"+"&lt;li&gt;非法的图片id参数。"<BR>  else<BR>    picid=cint(request.querystring("pic_id"))<BR>  end if<BR>end if</P>
<P>if founderr then<BR>  call diserror()<BR>else</P>
<P>sql="select pic_name,pic_url,pic_count from pic where pic_id="&amp;picid<BR>set rs=conn.execute(sql)<BR>dim picurl<BR>picurl=rs("pic_url")<BR>sql="UPDATE pic SET pic_count = pic_count + 1 where pic_id="&amp;picid<BR>conn.execute(sql)</P>
<P>%&gt;</P>
<P><BR>各位大哥,这段程序哪里出错了啊?    图片老是出现这个错误</P>
<IMG src="http://www.joekoe.com/upload/forum/200510/20051001061642oy.jpg" border=0>

天使漫步云断 发表于 2007-10-9 14:28

汗  这是新手区  不懂 看的头晕~~~~~~

xindeluoye 发表于 2007-10-9 14:46

这是什么语言?<BR> 我孤陋寡闻   没看过

gavinhuang 发表于 2007-10-9 15:04

vbscript吧,应该是request.querystring("pic_id")="" 这个条件满足,可能是页面参数传递出了问题。

论坛元老 发表于 2008-4-2 15:26

路过,顶一下

FFEEDD 发表于 2008-5-14 16:22

ASP``
程序里``没有指定图片的ID``所以会出错

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.