Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Anyone ever get this....
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Xstream-PT
Starting Member

45 Posts

Posted - 15 May 2002 :  22:52:19  Show Profile
[Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error

/forum/post_info.asp, line 830


?

X

dunzone
Starting Member

6 Posts

Posted - 15 May 2002 :  23:17:35  Show Profile
quote:

[Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error

/forum/post_info.asp, line 830


?

X



Replace your file (post_info.asp) with this post_info.asp!
http://www.dzone12.netfirms.com/downloads/post.ZIP
That should work. Make sure /forum/ is where config.asp and the other forum files are located. Hope this helps!



Edited by - dunzone on 15 May 2002 23:19:06

Edited by - dunzone on 15 May 2002 23:20:53
Go to Top of Page

Xstream-PT
Starting Member

45 Posts

Posted - 16 May 2002 :  07:06:17  Show Profile
I would love to do that, but it still doesn't explain the error. I have a couple mods installed. Should I post my code?

X

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 16 May 2002 :  07:37:15  Show Profile  Visit HuwR's Homepage
quote:

[Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error

/forum/post_info.asp, line 830


?

X



can you post from say line 810 - 840 of your post_info.asp

Go to Top of Page

Xstream-PT
Starting Member

45 Posts

Posted - 16 May 2002 :  23:13:55  Show Profile
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


Go to Top of Page

Xstream-PT
Starting Member

45 Posts

Posted - 16 May 2002 :  23:16:53  Show Profile
I'm wondering if I should run the Request("RSubject") through the chkstring thing?

X

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07