Xstream-PT
Starting Member
45 Posts |
Posted - 16 May 2002 : 23:13:55
|
Sure. Here's the error code again:
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error
/pie4foo/forum/post_info.asp, line 830
And here's the code
'######## END Threaded changes by Babygate #############
if txtMessage = " " then txtMessage = "nt" txtSubject = txtSubject + "-(nt)" 'Go_Result "You must post a message!", 0 'Response.End end if
if Request.Form("sig") = "yes" and GetSig(STRdbntUserName) <> "" then txtMessage = txtMessage & vbNewline & vbNewline & ChkString(GetSig(STRdbntUserName), "signature" ) end if
'## Forum_SQL strSql = "INSERT INTO " & strTablePrefix & "REPLY " strSql = strSql & "(TOPIC_ID" strSql = strSql & ", FORUM_ID" strSql = strSql & ", CAT_ID" '######## BEGIN Threaded changes by Babygate ############# strSql = strSql & ", THREAD_ID" strSql = strSql & ", R_SUBJECT" '######## BEGIN Threaded changes by Babygate ############# strSql = strSql & ", R_AUTHOR" strSql = strSql & ", R_DATE " if strIPLogging <> "0" then strSql = strSql & ", R_IP" end if strSql = strSql & ", R_STATUS" strSql = strSql & ", R_MESSAGE" strSql = strSql & ") VALUES (" strSql = strSql & Topic_ID strSql = strSql & ", " & Forum_ID strSql = strSql & ", " & Cat_ID '######## BEGIN Threaded changes by Babygate ############# strSql = strSql & ", " & THREAD_ID strSql = strSql & ", " & "'" & Request.Form("RSubject") & "'" '######## BEGIN Threaded changes by Babygate ############# strSql = strSql & ", " & rs("MEMBER_ID") strSql = strSql & ", " & "'" & DateToStr(strForumTimeAdjust) & "'" if strIPLogging <> "0" then strSql = strSql & ", " & "'" & Request.ServerVariables("REMOTE_ADDR") & "'" end if ' DEM --> Added R_STATUS to allow for moderation of posts ' Used R_STATUS = 1 to match the topic status code. if Moderation = "Yes" then strSql = strSql & ", 2" else strSql = strSql & ", 1" end if ' DEM --> End of Code added strSql = strSql & ", " & "'" & txtMessage & "'" strSql = strSql & ")"
my_Conn.Execute (strSql)
' DEM --> Do not update totals on topics and forums database if post is moderated...Added if and end if if Moderation = "No" then '## Forum_SQL - Update Last Post and count strSql = "UPDATE " & strActivePrefix & "TOPICS " strSql = strSql & " SET T_LAST_POST = '" & DateToStr(strForumTimeAdjust) & "'" strSql = strSql & ", T_REPLIES = T_REPLIES + 1 " strSql = strSql & ", T_LAST_POST_AUTHOR = " & rs("MEMBER_ID") if Request.Form("lock") = 1 then strSql = strSql & ", T_STATUS = 0 " end if strSql = strSql & " WHERE TOPIC_ID = " & Topic_ID
my_Conn.Execute (strSql)
Line 830 is bold. Thanks in advance!
X
|
|
|