首页 > 网站 > 建站经验 > 正文

asp 查询指定!id记录进行修改

2019-11-02 15:47:17
字体:
来源:转载
供稿:网友

asp教程 查询指定id记录进行修改
<%
Dim Id,Sql,Url
Id=Html_Encode(Request.QueryString("id"))
If id="" Then
 Response.Write("数据传输过程被修改过了,服务器拒绝操作.")
 Response.End
ElseIf Not IsNumeric(Id) Then
 Response.Write("数据传输过程被修改过了,服务器拒绝操作.")
 Response.End
Else
 Call Hit(id)
 Url=Request.ServerVariables(&quo

巴巴影院[www.aikan.tv/special/babayingyuan/]
t;Script_Name")
 Sql="Select * from young Where id="&Id
 On Error Resume Next
 Call OpenDb
 Set Rs=Conn.Execute(Sql)
 If Not Rs.eof Then
 Did=Rs(0)
 Pid=Rs(1)
 Cid=Replace(Replace(Rs(2),"Script",""),"<","")
%>

原理很简单,现在我们把获取id的值哦。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表