怎么插入不成功
我做了一个添加文章的页面,添加后提示成功了,没有出什么错,可是数据库里什么都没有?是怎么回师啊,有知道的吗?指点下!谢谢
代码:
<%
Response.Expires = 0
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>文章管理页面</title>
</head>
<!--#include file="conn.asp"-->
<%
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
%>
<body text="#000000" topmargin="0" bgcolor="#009900">
<div align="center">
<!--#include file="top.asp"-->
<table border="0" cellpadding="0" cellspacing="0" height="485" width="810" background="image/beijing.jpg">
<tr>
<td width="5" height="500"></td>
<td width="800" height="500" align="center" valign="top"><form id="form1" name="form1" method="post" action="">
<table width="800" height="500" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="500" height="30" align="center">文章标题:
<label>
<input name="title" type="text" id="title" style="width:120px; height:20px; background-color:#E7F0F0; border:#CCFF00 1px dotted;" />
</label></td>
<td width="300" align="left">作者:
<label>
<input name="author" type="text" id="author" style="width:100px; height:20px; background-color:#E7F0F0; border:#CCFF00 1px dotted;" />
</label></td>
</tr>
<tr>
<td width="500" height="30" align="center">文章类别:
<label>
<select name="class" id="class">
<option>-☆文章类别☆-</option>
<option value="1">最新新闻</option>
<option value="2">最新推荐</option>
<option value="3">热点文章</option>
<option value="4">情感天地</option>
</select>
</label></td>
<td width="300" align="left"><label>来自:
<input name="from" type="text" id="from" style="width:100px; height:20px; background-color:#E7F0F0; border:#CCFF00 1px dotted;" />
</label>
<label></label></td>
</tr>
<tr>
<td height="440" colspan="2" align="center" valign="top">
<textarea name="Content" id="Content" style="display:none"></textarea>
<IFRAME ID="Content1" SRC="editor.asp?id=Content" FRAMEBORDER="0" SCROLLING="no" WIDTH="600" HEIGHT="425" align="middle"></IFRAME>
<p align="center"><input type="submit" name="send" value="发表">
</td>
</tr>
</table>
</form>
</td>
<td width="5" height="500"></td>
</tr>
</table>
<!--#include file="bottom.asp"-->
</div>
</body>
</html>