麻烦看看什么原因?谢谢!!!
<!--#include file="conn.asp"--><% Diary_Title=request.Form("Diary_Title")
Diary_Content=request.Form("Diary_Content")
Diary_List_Title=request.Form("Diary_List_Title")
Diary_List_Id=request.Form("Diary_List_Id")
set rsn=server.CreateObject("ADODB.Recordset")
sqn="select * from Diary_List where Diary_List_Id="&request("Diary_List_Id")
rsn.open sqn,conn,1,1
Diary_List_Title=rsn("Diary_List_Title")
sql="insert into Diary(Diary_Title,Diary_Content,Diary_List_Title,Diary_List_Id,People_Id) values('"&Diary_Title&"','"&Diary_Content&"','"&Diary_List_Title&"','"&Diary_List_Id&"','"&session("People_Id")&"')"
response.Write sql
conn.execute(sql)
response.write "<script language=JavaScript>" & chr(13) & "alert('添加日志文章成功.!');"&"window.location.href = 'liuyan.asp'"&"</script>"
'sqll="insert into system_diary(people_name) values('"&people_name&"')
%>
Microsoft JET Database Engine (0x80040E14)
语法错误 (操作符丢失) 在查询表达式 'Diary_List_Id=' 中。