标题:各们大哥 现在好了 过来给看下(小弟急用)
只看楼主
jishiqian
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2006-4-21
 问题点数:0 回复次数:2 
各们大哥 现在好了 过来给看下(小弟急用)
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/mj.asp" -->
<%
dim Duserid
Duserid=Request.form("userid")
if Duserid="" then
Remess="会员编号为空,删除失败!"
Response.Write(Remess)
else
set oConn=server.CreateObject("adodb.recordset")
sql1="delete from users where userid='"&Duserid&"'"
oConn.open sql1,gym_conn,1,3
Remess="成功删除会员编号为 "&Duserid&" 的记录!"
Response.Write(Remess)
oConn.Close
end if
%>


数据库连接没用 那位大哥给改下 谢谢
搜索更多相关主题的帖子: include blank target where 会员 
2006-04-21 15:36
jishiqian
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2006-4-21
得分:0 

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/mj.asp" -->
<%
dim Duserid
Duserid=Request.form("userid")
if Duserid="" then
Remess="会员编号为空,删除失败!"
Response.Write(Remess)
else
set oConn=server.CreateObject("adodb.recordset")
sql1="delete from users where userid='"&Duserid&"'"
oConn.open sql1,gym_conn,1,3
Remess="成功删除会员编号为 "&Duserid&" 的记录!"
Response.Write(Remess)
oConn.Close
end if
%>

2006-04-21 15:37
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
得分:0 
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/mj.asp" -->
<% dim Duserid
Duserid=Request.form("userid")
if Duserid="" then
Remess="会员编号为空,删除失败!"
Response.Write(Remess)
else
set oConn=server.CreateObject("adodb.recordset")
sql1="delete from users where userid='"&Duserid&"'"
oConn.open sql1,gym_conn,1,3
Remess="成功删除会员编号为 "&Duserid&" 的记录!"
Response.Write(Remess)
oConn.Close
end if%>数据库连接没用 那位大哥给改下 谢谢
oConn.open sql1,gym_conn,1,3
直接用Connection对象
gym_conn.Execute(sql1)
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/mj.asp" -->
<% dim Duserid
Duserid=Request.form("userid")
if Duserid="" then
Remess="会员编号为空,删除失败!"
Response.Write(Remess)
else
set oConn=server.CreateObject("adodb.recordset")
sql1="delete from users where userid='"&Duserid&"'"
gym_conn.Execute(sql1)
Remess="成功删除会员编号为 "&Duserid&" 的记录!"
Response.Write(Remess)
oConn.Close
end if%>
userid='"&Duserid&"'" 这里userid数据库里是什么类型?
2006-04-21 20:56



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-59081-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.134309 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved