streborr
IS-IT--Management
- Jan 16, 2002
- 98
I don't know why, but now it doesn't work!
mTitle = replace(mTitle, "'", "|"
mTitle = replace(mTitle, vbcrlf, "<br>"
mTitle = Replace(mTitle, Chr(34), """
mTitle = Server.HTMLEncode(mTitle)
message = replace(message, "'", "|"
message = replace(message, vbcrlf, "<br>"
message = Replace(message, chr(34), """
message = Server.HTMLEncode(message)
When I try to Insert into db this error comes up:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Field 'forum.mTitle' cannot be a zero-length string.
/testdb/reply.asp, line 229
line 229 is this:
Set oRS = oConn.Execute("INSERT INTO forum (mTitle, Message) VALUES (''" & mTitle & "', '" & Message & "')"
When I use ("
in the mTitle or Message I get the error, it used to work, I can't figure out why it stopped working.
mTitle = replace(mTitle, "'", "|"
mTitle = replace(mTitle, vbcrlf, "<br>"
mTitle = Replace(mTitle, Chr(34), """
mTitle = Server.HTMLEncode(mTitle)
message = replace(message, "'", "|"
message = replace(message, vbcrlf, "<br>"
message = Replace(message, chr(34), """
message = Server.HTMLEncode(message)
When I try to Insert into db this error comes up:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Field 'forum.mTitle' cannot be a zero-length string.
/testdb/reply.asp, line 229
line 229 is this:
Set oRS = oConn.Execute("INSERT INTO forum (mTitle, Message) VALUES (''" & mTitle & "', '" & Message & "')"
When I use ("