最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp 删除指定记录程序代码
时间:2022-07-02 22:31:52 编辑:袖梨 来源:一聚教程网
连接
sub opendb()
set rs=server.CreateObject("adodb.recordset")
set conn=server.CreateObject("adodb.connection")
conn.connectionstring="provider=microsoft.jet.oledb.4.0; data source="&server.mappath("datasource/hhinfo.mdb")
conn.open
end sub
判断是否为登陆用户
if session("username")="" and session("userpwd")="" then
response.Redirect("login.html")
end if
dim sql,id
获取Id由地址栏传过来的值
id=html_encode(request.QueryString("id"))
if id="" or not isnumeric(id) then
response.Write("非法操作")
else
sql="delete * from new where id="&id
call opendb()
conn.execute(sql)
if err=0 then
response.write("")
else
response.write("")
end if
end if
%>
使用方法
">删除
本站原创文章,转载注明来源
相关文章
- 过山车之星2游乐园声誉提升方法分享 11-04
- 过山车之星2独特景点作用介绍说明 11-04
- 炉石传说标准模式轮盘术卡组推荐分享 11-04
- 炉石传说标准小行星萨卡组推荐分享 11-04
- 炉石传说基尔加丹轮盘术卡组推荐分享 11-04
- 炉石传说宇宙彩虹DK高胜率卡组推荐分享 11-04