You are here: Re: Apostrophe - when used it mucks with my odbc « PHP Programming Language « IT news, forums, messages
Re: Apostrophe - when used it mucks with my odbc

Posted by Rami Elomaa on 05/14/07 10:43

"Johnny BeGood" <jbg@jbg.net> wrote in message
news:U0B1i.19580$j7.373487@news.indigo.ie...
> Hi All,
>
> When a user enters an Apostrophe into a text area field on a form, i.e.
> didn't, it mucks with odbc as follows
>
> [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator)
> in query expression ''didn't',
>
> Whats the best way to handle this, other than not entering the apostrophe.
> I'm stuck with the current backend database as its part of an existing
> application.
>

Apostrophes are escaped by another apostrophe. Ie. 'didn't' should be
entered as 'didn''t'. At least this is how it works in MS SQL, and I'm
certain that Access has the same syntax.

--
Rami.Elomaa@gmail.com

"Good tea. Nice house." -- Worf

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация