大侠看一下asp rs.addnew为什么更新不了数据库啊 求助
<!--#includefile="../conn.asp"--><html><head><metahttp-equiv="Content-Type"content="t...
<!--#include file="../conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>成功</title>
</head>
<body><div>
<% if request("newsadd")=1 then
set rs=server.createobject("adodb.recordset")
sql="select * from news "
rs.open dsql,conn,1,3
rs.addnew
rs("newsname")=request("newsnameadd")
rs("newsinfor")=request("newsinforadd")
rs("news")=request("newsadd")
rs.update
rs.close
set rs=nothing
%><p><a href="?newsadd=0" target="_self">添加成功,点击返回</a> </p><%
else
%>
<FORM id="GaobeiSys_Reg" name="GaobeiSys_Reg" action="?newsadd=1" method="post" onSubmit="return CheckForm();">
————————————————www.haochepianyi.com二手油罐车网 展开
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>成功</title>
</head>
<body><div>
<% if request("newsadd")=1 then
set rs=server.createobject("adodb.recordset")
sql="select * from news "
rs.open dsql,conn,1,3
rs.addnew
rs("newsname")=request("newsnameadd")
rs("newsinfor")=request("newsinforadd")
rs("news")=request("newsadd")
rs.update
rs.close
set rs=nothing
%><p><a href="?newsadd=0" target="_self">添加成功,点击返回</a> </p><%
else
%>
<FORM id="GaobeiSys_Reg" name="GaobeiSys_Reg" action="?newsadd=1" method="post" onSubmit="return CheckForm();">
————————————————www.haochepianyi.com二手油罐车网 展开
2个回答
2010-11-26
展开全部
楼上的回答没错
rs.open sql,conn,1,3
rs.open sql,conn,1,3
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询