有声听书吧 软件:关于asp的一小段程序,请高手帮我改一下,谢谢

来源:百度文库 编辑:高校问答 时间:2024/04/28 01:15:54
<!--#include file="conn.asp"-->
<%
username=Request("username")
Email=Request("e-mail")
topic=Request("topic")
article=Request("article")
CurrentTime=Now()
address=Request.ServerVariables("REMOTE_ADDR")
objRS.AddNewArray"username","Email","topic","article","CurrentTime",_
Array(username,e-mail,topic,article,time)
objRS.Update
Response.Reditect"GuestBook.asp"
objRS.Close
SetobjRS=Nothing
objConn.Close
SetobjConn=Nothing
%>

很显然这是一个插入语句,但是楼主,你这样写是不对滴
conn.execute "insert into 表名 (字段名1,字段名2) values(字段1的变量1,字段2的变量2)"
楼主按这个再试一下吧