ASP连接access数据库代码问题
<%email=request.form("email")contents=request.form("contents")ifemail=""thenemail="un...
<%
email=request.form("email")
contents=request.form("contents")
if email = "" then email="unknown"
if contents="" then contents="none"
userip=request.servervariables("REMOTE_ADDR")
mysql="insert into reactive(email,ip,contents) values ('" & email & "','" & userip & "','" & contents & "')"
set conn=server.createobject("ADODB.Connection")
conn.open "DSN=hello;"
conn.execute mysql
%>
各位帮我看看conn.open "DSN=hello;"这里有什么错误. 展开
email=request.form("email")
contents=request.form("contents")
if email = "" then email="unknown"
if contents="" then contents="none"
userip=request.servervariables("REMOTE_ADDR")
mysql="insert into reactive(email,ip,contents) values ('" & email & "','" & userip & "','" & contents & "')"
set conn=server.createobject("ADODB.Connection")
conn.open "DSN=hello;"
conn.execute mysql
%>
各位帮我看看conn.open "DSN=hello;"这里有什么错误. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询