asp代码错误提示,请大大们求解答
大大们麻烦一下,是ASP错误的提问错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]第 1 行: ',' 附近有语法错误。
/webschool/xuexijiaoliu/BBSluntan/announce.asp, 第 44 行
<% response.buffer=True %>
<!--#include file="conn.asp"-->
<html>
<head>
<title>发表新文章</title>
</head>
<body>
<h2 align="center">发表新文章</h2>
<center>
<table border="0" width=90%>
<form method="post" action="" name="form1">
<tr><td>主题:</td><td><input type="text" name="title" size="60">**
</td></tr>
<tr><td>内容:</td><td><textarea name="body" rows="4" cols="60" wrap="soft">
</textarea></td></tr>
<tr><td>姓名:</td><td><input type="text" name="user_name" size="20">**
</td></tr>
<tr><td></td>
<td><input type="submit" value="提交" size="20"></td>
</tr>
</form>
</table>
</center>
<p align=center><a href="index.asp?page_no=<%=session("page_no")%>">返回首页</a>
<%
if request("title")<>"" and request("user_name")<>""then
dim title,body,layer,parent_id,child,hits,ip,user_name
title=request.form("title")
body=request.form("body")
user_name=request.form("user_name")
layer=1
parent_id=0
chuid=0
hits=0
ip=request.servervariables("remote_addr")
dim sql,svalues
sql="insert into bbs(title,layer,parent_id,child,hits,ip,user_name,submit_date"
svalues="values('"&title&"',"&layer&","&parent_id&","&child&","&hits&",'"&ip&"','"&user_name&"','"&date()&"'"
if body<>""then
sql=sql&",body"
svalues=svalues&","&"'"&body&"'"
end if
sql=sql&")"&svalues&")"
db.execute(sql)
db.close
response.redirect"index.asp"
end if
%>
</body>
</html>
是sql这句有错 可是在数据库中运行没有语法错误