R
Rob Meade
Hi all,
Ok - I kinda new the golden rule, if there's an apostrophe in a bit of text
you wanna write to the SQL server database, just double it up - marvellous -
has been working for ages - nicely!
Today however this appears not to be the case..
I have a page where the user enters text in to a textarea, the info is then
parsed, and the ' replaced to '' - written to the database..
A new chappy trying this today said it was all good but was wondering why
there were '' appearing on the pages - I had a look - sure enough there were
2 apostrophes.
I've logged into this myself this evening and have tried it, it appeared in
the textarea (grabbed back from database) fine - only one - I removed it,
saved it, check it, none on the page, great, then I went back in added 1,
saved it, checked it, and there was only one displayed...
My question is whether or not local/regional settings can affect this - I
personally dont see how, I assumed that this guy was pulling my chain and
actually entering 2 - but that doesn't appear to be the case..
I cant replicate the problem on my test server where I have just tested it
and it was fine - neither does it appear to be a problem for someone else
using this app.
Has anyone got any ideas why it might double it for one person and not
another?
Differences between users were:
me testing - sat on server which is running IIS and SQL Server
other person testing - sat at a PC miles away connecting to my server
Any info appreciated
Regards
Rob
Ok - I kinda new the golden rule, if there's an apostrophe in a bit of text
you wanna write to the SQL server database, just double it up - marvellous -
has been working for ages - nicely!
Today however this appears not to be the case..
I have a page where the user enters text in to a textarea, the info is then
parsed, and the ' replaced to '' - written to the database..
A new chappy trying this today said it was all good but was wondering why
there were '' appearing on the pages - I had a look - sure enough there were
2 apostrophes.
I've logged into this myself this evening and have tried it, it appeared in
the textarea (grabbed back from database) fine - only one - I removed it,
saved it, check it, none on the page, great, then I went back in added 1,
saved it, checked it, and there was only one displayed...
My question is whether or not local/regional settings can affect this - I
personally dont see how, I assumed that this guy was pulling my chain and
actually entering 2 - but that doesn't appear to be the case..
I cant replicate the problem on my test server where I have just tested it
and it was fine - neither does it appear to be a problem for someone else
using this app.
Has anyone got any ideas why it might double it for one person and not
another?
Differences between users were:
me testing - sat on server which is running IIS and SQL Server
other person testing - sat at a PC miles away connecting to my server
Any info appreciated
Regards
Rob