/mename.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www./mename.gif');}" onmousewheel="return imgzoom(this);" alt="" />
set rst=server.createobject("adodb.recordset") sql="select * from movie where id="&request("serverip")'字段serverip是影片简介中关链影片地址的ID号 rst.open sql,conn,1,1 if rst("moviedl")<>"" then execute rst("moviedl") else response.write rst("ipsip") end if
以下是引用adleyliu在2006-7-26 8:05:14的发言: set rst=server.createobject("adodb.recordset")'创建一个数据库集合对象rst sql="select * from movie where id="&request("serverip")'字段serverip是影片简介中关链影片地址的ID号 rst.open sql,conn,1,1'将上一句sql变量里查询数据库movie表里id等于serverip的所有记录并储存在集合对象rst中 if rst("moviedl")<>"" then'如果查询的集合结果中moviedl不为空 execute rst("moviedl")'execute不清楚,本人只知道conn.execute是有此方法,也有可能此方法是自定义函数。 else response.write rst("ipsip")'如果moviedl为空(里面没有数据),则显示影片地址。 end if