原来程序可以用,请人换了数据库结果这个增加新内容页面就不能用了。
页面程序save_add_jycj.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%if session("grade")<>"10" then response.redirect "./"%>
<!--#include file="chklogin.asp"-->
<!--#include file="var.asp"-->
<!--#include file="userconn.asp"-->
<!--#include file="../sub/fun.asp"-->
<!--#include file="upload.inc" -->
<%
response.buffer=true
set upload=new upload_5xSoft
title=upload.form("title")
if upload.form("rule")<>"" then
rule=upload.form("rule")
else
response.write "<script>alert('对不起,请输入内容!');history.back();</Script>"
response.end
end if
Dim strrule
if title<>"" then
SQL="insert into jycj(title,rule,xxtime)Values('"&title&"','"&rule&"','"&date()&"')"
else
response.write "<script>alert('请输入会员编号!');history.back();</Script>"
response.end
end if
conn.Execute SQL
if err.number<>0 then
Response.Write(err.Description)
else
Response.Write("<center>信息已经添加成功!<a href='javascript:close()'>关闭窗口</a></center>")
end if
%>
<script language="JScript" runat="server">
function radm()
return Math.round(Math.random()*100)
</script>
<html>
<head>
<meta ;
<title>无会员编号文档</title>
</head>
<body>
</body>
</html>
<%closeconn%>
这个网页程序没动,但是include file="userconn.asp"这个由ACCESS换成了MSSQL数据库,结果就打不开了