ASP 不能完整把每个字段存入数据库 ASP高手看一下

来源:百度知道 编辑:UC知道 时间:2024/07/02 06:51:04
我这个是改来的,原先是存title content src happentime这几个字段的,后来我多添加了些字段,结果只能添加原来的字段,新添加的字段没法添加进数据库。请高手看看是怎么回事~~
还有个问题happentime无法添加,我是用另外一个修改页面才添加起时间的。
拜托...高手
<% option explicit
if session("login")<>"yes" then
response.Write" 此页只限版主使用,请不要黑小弟的网站。"
response.End()
end if
%>
<!--#include file="../../news/hot/hotconn.asp"-->
<%
if trim(request.form("title"))="" then
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新闻添加</title>
</head>
<body>
<table width="800" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="800" height="50"><

title=trim(request.form("title"))
content=trim(request.form("content"))
if content="" then content="无内容"
src=trim(request.form("src"))
if src="" then src="互联网"
'先要用下面的代码获取表单的传值
happentime=trim(request.form("happentime"))
picsrc=trim(request.form("picsrc"))
pic=trim(request.form("pic"))
word=trim(request.form("word"))
num=trim(request.form("num"))
kind=trim(request.form("kind"))