|
if request.form("send")="发表" then
title=request.form("title")
neirong=request.form("Content")
author=request.form("author")
classid=request.form("class")
from=request.form("from")
response.Write(title)
response.Write(neirong)
response.Write(from)
conn.execute "insert into article(title,neirong,from,author,class,vtime) values('"&title&"','"&neirong&"','"&from&"','"&author&"',"&classid&",0)"
if conn.errors.count>0 then
response.write("error")
end if
response.write "<script language='javascript'>"
response.write "alert('添加成功!');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
end if
我这样插入一段文章,操作没有错误,可是就是数据库里什么内容都没有? |
|