当前位置: 代码迷 >> ASP >> asp牛人近来帮小弟一把吧!(上一篇,下一篇)的有关问题
  详细解决方案

asp牛人近来帮小弟一把吧!(上一篇,下一篇)的有关问题

热度:255   发布时间:2012-02-29 16:44:10.0
asp牛人近来帮小弟一把吧!(上一篇,下一篇)的问题
唉~请留下你的QQ我加你,我已经崩溃了!

------解决方案--------------------
<!--#include file= "Conn.asp " -->
<%
if request( "id ")= " " then
Response.Write( "操作错误 ")
response.End()
else
Set Rs=server.CreateObject( "ADODB.RecordSet ")
SqlStr= "select * from new where id= " & request( "id ")
Rs.Open SqlStr,conn,1,3
rs( "hit ")=rs( "hit ")+1
rs.update
%>
..........
<%
Set New_Rs=server.CreateObject( "ADODB.RecordSet ")
New_SqlStr= "Select top1 * from new where id> " & Request( "ID ")& "order by id desc "
New_Rs.Open New_SqlStr,conn,1,1
if not New_Rs.eof then
%>
..........
试下这个
  相关解决方案