[求助]我的程序问题
<P><BR><%<BR>dim founderr,errmsg<BR>founderr=false<BR>errmsg=""</P><P>if request.querystring("pic_id")="" then<BR> founderr=true<BR> errmsg=errmsg+"<br>"+"<li>你必须指定操作的对象!"<BR>else<BR> dim picid<BR> if not isInteger(request.querystring("pic_id")) then<BR> founderr=true<BR> errmsg=errmsg+"<br>"+"<li>非法的图片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="&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="&picid<BR>conn.execute(sql)</P>
<P>%></P>
<P><BR>各位大哥,这段程序哪里出错了啊? 图片老是出现这个错误</P>
<IMG src="http://www.joekoe.com/upload/forum/200510/20051001061642oy.jpg" border=0> 汗 这是新手区 不懂 看的头晕~~~~~~ 这是什么语言?<BR> 我孤陋寡闻 没看过 vbscript吧,应该是request.querystring("pic_id")="" 这个条件满足,可能是页面参数传递出了问题。 路过,顶一下 ASP``
程序里``没有指定图片的ID``所以会出错
页:
[1]
