<%
dim conn
dim connstr
dim db
db="../data/1du.asp"
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db)
conn.Open connstr
sub closedatabase()
conn.close
set conn=Nothing
End sub
%>
<title>错误提示</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
dim founderr,errmsg
founderr=false
errmsg=""
if Request.form("MM_insert") then
if request.form("action")="newp" then
sql="select * from p_class_small"
set rs=server.createobject("adodb.recordset")
rs.open sql
if request.form("action")="editp" then
if request.Form("id")="" then
founderr=true
errmsg=errmsg+"<br>"+"<li>你必须指定操作的对象!"
新闻热点
疑难解答