Topic: My feelings are hurt, now
in Forum: Official C3 Vette Registry Support/Issues/Comments

Moderator


If someone can "talk" me thru it, I'd really 'preciate it.

know you're all in there talking bad about ME!




This is what I'm getting to-nite, when I click on the "Live Chat" icon:
There was an error! It has been reported to the system administrator. It you continue to get this message for more than 1 day, please send an email to support@VR.com
Error 424: Object required
Microsoft JET Database Engine error '80040e14'
Syntax error (missing operator) in query expression 'Username = 'Adams' Apple';'.
/netchatter/login.asp, line 16
Joel Adams
C3VR Lifetime Member #56
My Link
(click for Texas-sized view!) NCRS
"Money can't buy happiness -- but somehow it's more comforting to cry in a CORVETTE than in a Kia"

C3VR Founder
-Adam Wartell
NCM Lifetime Member #1222
Founder: C3 Vette Registry
C4 Vette Registry, C6 Vette Registry
My first Vette, now owned by JB79:


Moderator



Joel Adams
C3VR Lifetime Member #56
My Link
(click for Texas-sized view!) NCRS
"Money can't buy happiness -- but somehow it's more comforting to cry in a CORVETTE than in a Kia"

Moderator


It was the fact that my screen name, Adams' Apple has an apostrophy in it. Seems the software didn't recognize/accept this type of data. Only took 2years to to discover this 'glitch'!!

Just kiddin, guys!

Thanks for the help on this, Adam & Mike!!! I really enjoyed being able to join in a little last nite. (I think Mike wanted to drive me even closer to the brink, cause he would I/M me at the same time I was "chatting", causing a considerable amount of cornfusion on my part, which, in reality, ain't all that hard to do!

btw.....who put the fat, nekkid chick on my desktop?

Joel Adams
C3VR Lifetime Member #56
My Link
(click for Texas-sized view!) NCRS
"Money can't buy happiness -- but somehow it's more comforting to cry in a CORVETTE than in a Kia"

Moderator




Joel Adams
C3VR Lifetime Member #56
My Link
(click for Texas-sized view!) NCRS
"Money can't buy happiness -- but somehow it's more comforting to cry in a CORVETTE than in a Kia"

C3VR Founder
Stephane,
You are right about it being an issue with SQL Server.
As a programmer, I know all too well about the ' in SQL Queries causing a failier. And when I coded the majority of the pages for this site, I made sure to account for it. However, I did not write the code for the Chat Room. Apparently that person didn't account for ' in a user name.
The unfortunate part for Adams' Apple, was that he wasn't getting an error message that he could tell me about, and my site didn't report any errors (again, probably because I didn't write that code).
So, for Stephane and other techies... here's the fix:
strSQL = "SELECT * FROM Users WHERE UserName = '" & replace(strUserName, "'", "''") & "'"
Which causes each single ' to turn into two ' right next to each other like this: ''
That tells the database to use the '' as a single ' in the user name and not as part of the database query command.
Everyone confused now?
-Adam Wartell
NCM Lifetime Member #1222
Founder: C3 Vette Registry
C4 Vette Registry, C6 Vette Registry
My first Vette, now owned by JB79:
