<% set rs=server.createobject("adodb.recordset") sql="select * from download where id="&request("id") 'response.write sql rs.open sql,conn,1,3 %> <% 'response.write rs("plays") rs("plays")=rs("plays")+1 rs.update downurl=rs("downurl") %> <%set rs=server.createobject("adodb.recordset") sql="select * from logs where datetime=#"&date()&"# and ipstyle="&ipstyle&" and idstyle=1" 'response.write sql rs.open sql,conn,1,3 %> <% 'response.write rs("total") if rs("datetime")="" then 'response.write "111" sql="select * from logs where datetime=#"&date()&"# and ipstyle="&ipstyle&" and idstyle=1" 'response.write sql rs.open sql,conn,1,3 rs.addnew rs("idstyle")=1'播放 rs("ipstyle")=ipstyle'内外网 rs("total")=1 rs("datetime")=date() else 'response.write "222" rs("total")=rs("total")+1 end if rs.update %> FLASH播放器
<%rs.close conn.close set rs=nothing set conn=nothing %>