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: MOD Implementation
 Merge Topic Error
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MaGraham
Senior Member

USA
1297 Posts

Posted - 24 August 2012 :  06:21:40  Show Profile  Reply with Quote

In trying to merge a topic just now, I received this error message below.

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[MySQL][ODBC 3.51 Driver][mysqld-5.0.45-community-nt]Column count doesn't match value count at row 1

/tfp/post_info.asp, line 1290


Here are lines 1263 - 1304 below if someone can help; please.




my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords
end if

'Following query moves the topic to the reply table
strSql = "INSERT INTO " & strTablePrefix & "REPLY "
strSql = strSql & "(TOPIC_ID"
strSql = strSql & ", FORUM_ID"
strSql = strSql & ", CAT_ID"
strSql = strSql & ", R_AUTHOR"
strSql = strSql & ", R_DATE"
strSql = strSql & ", R_IP"
strSql = strSql & ", R_STATUS"
strSql = strSql & ", R_SIG"
strSql = strSql & ", R_MESSAGE"
strSql = strSql & ", R_MSGICON"
strSql = strSql & ") VALUES ("
strSql = strSql & allRec(TopicID, intOlderTopic)
strSql = strSql & ", " & allRec(ForumID, intOlderTopic)
strSql = strSql & ", " & allRec(CatID, intOlderTopic)
strSql = strSql & ", " & allRec(Topic_Author, intOtherTopic)
strSql = strSql & ", '" & allRec(Topic_Date, intOtherTopic) & "'"
strSql = strSql & ", '" & allRec(Topic_IP, intOtherTopic) & "'"
strSql = strSql & ", 1"
strSql = strSql & ", " & allRec(Topic_Sig, intOtherTopic)
strSql = strSql & ", '" & chkString(allRec(Topic_Message, intOtherTopic),"message") & "')"
'Response.Write strSql & "<br>"
'Response.End
my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords

'Change the replies topic id from the topic we merging to,
'to the current topic, effectively moving them from one topic
'to the other.
strSql = "UPDATE " & strTablePrefix & "REPLY"
strSql = strSql & " SET TOPIC_ID = " & allRec(TopicID, intOlderTopic)
if blnInSameForum = false then
strSql = strSql & ", FORUM_ID = " & allRec(ForumID, intOlderTopic)
strSql = strSql & ", CAT_ID = " & allRec(CatID, intOlderTopic)
end if
strSql = strSql & " WHERE TOPIC_ID = " & allRec(TopicID, intOtherTopic)
'Response.Write strSql & "<br>"
'Response.End
my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords




Here is a copy of my entire post_info.asp in txt format if someone needs to and has time to look at it; please.


post_info.asp in txt format


"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 August 2012 :  20:44:00  Show Profile
When you added some Message Icon mod, you left off a bit of code out of this section you posted. (Or whatever mod you last added to this file, removed the code for the Message Icon mod)

You have this bit of code: strSql = strSql & ", R_MSGICON"
But no corresponding value for it.


Support Snitz Forums

Edited by - Davio on 24 August 2012 20:46:21
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 25 August 2012 :  03:23:33  Show Profile
Yeah, line 1287 should be changed to say:

      strSql = strSql & ", '" & chkString(allRec(Topic_Message, intOtherTopic),"message") & "'"
      strSql = strSql & ", " & cLng(Request.Form("strMessageIcon")) & ")"

Edited by - Carefree on 27 August 2012 07:36:14
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 27 August 2012 :  08:04:51  Show Profile


Worked PERFECT!!

Thank you for the correct fix, Carefree!!

Davio, I thank you for your reply as well!


You guys sure know how to make a girl's day! :)





"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.48 seconds. Powered By: Snitz Forums 2000 Version 3.4.07