asp 错误 不能更新。数据库或对象为只读
<%@LANGUAGE="VBSCRIPT"CODEPAGE="65001"%><!--#includefile="conn.asp"--><!DOCTYPEhtmlPU...
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="conn.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<%
dim n,m,sql,rs
n=request.Form("name")
m=request.Form("mima")
set rs=server.CreateObject("ADODB.recordset")
sql="select * from yonghu where name='"&n&"' "
rs.open sql,conn,1,1
if rs.recordcount>0 then
response.Write("已经有人了")
response.End
else
rs.close
rs.open "yonghu",conn,1,3
rs.addnew
rs("name")=n
rs("mima")=m
RS.update
rs.close
end if
%>
</body>
</html>
ASP错误:不能更新。数据库或对象为只读
我的数据库并未设置只读,系统为win7旗舰版32位!!! 展开
<!--#include file="conn.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<%
dim n,m,sql,rs
n=request.Form("name")
m=request.Form("mima")
set rs=server.CreateObject("ADODB.recordset")
sql="select * from yonghu where name='"&n&"' "
rs.open sql,conn,1,1
if rs.recordcount>0 then
response.Write("已经有人了")
response.End
else
rs.close
rs.open "yonghu",conn,1,3
rs.addnew
rs("name")=n
rs("mima")=m
RS.update
rs.close
end if
%>
</body>
</html>
ASP错误:不能更新。数据库或对象为只读
我的数据库并未设置只读,系统为win7旗舰版32位!!! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询