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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Enhanced Report to Moderator - 3.4.05 Compliant
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 08 March 2005 :  09:14:28  Show Profile
quote:
Originally posted by eauxvives
thanks it works!
You're welcome


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

withanhdammit
Junior Member

USA
236 Posts

Posted - 15 March 2005 :  19:27:41  Show Profile  Visit withanhdammit's Homepage  Send withanhdammit an ICQ Message
Hey Shaggy,

I implemented this with your change spec'd above and I am getting this error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 's'.

/ComplainToModerator.asp, line 100


My code lines look like:
	SQL = "INSERT INTO FORUM_COMPLAINTS(ForumID, TopicID, CatID, Message, ReporterID, IsTopic, ReplyID, Solved)"
	SQL = SQL &  " VALUES(" & ForumID & ", " & TopicID & ", " & CatID & ", '" & message & "', " & ReporterID & ", " & IsTopic & ", " & ReplyID & ", " & 0 & ")"


And, I told it to output my SQL line and it says it's this:
INSERT INTO FORUM_COMPLAINTS(ForumID, TopicID, CatID, Message, ReporterID, IsTopic, ReplyID, Solved) VALUES(7, 6, 1, 'This guy's a jerk!', 2, 1, 0, 0)


I tried it with a bunch of combos of ", "", """, '", etc., but none seem to work. Any ideas for me?

Thanks!

h
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 March 2005 :  09:41:17  Show Profile
Obviouly chkString isn't being executed on the message variable before inserting it in the database.
Change '"&message&"' to [brown]'"&chkString(message,"sqlstring")&"'


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07