Skip to Content.
Sympa Menu

freetds - RE: [freetds] RE: Charset conversion with Sybase ASE 12.0

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] RE: Charset conversion with Sybase ASE 12.0
  • Date: Thu, 26 Jun 2003 10:11:58 -0400

> From: jose [mailto:jramos AT cherrytel.com]
> Sent: June 26, 2003 6:08 AM
>
> I´m using freetds-0.61with php-4.2.3 and sql server 7.0.
...
> My problem is when I try insert one registrer with a
> string that contains the character ' or the character ", one
> error ocurrs. If you see the insert sentence in the error
> message you can look that this character is now protected
> with \, and I haven´t put this protection.

Jose,

Please see the archives of 6/23/2003 for a message from Arnar Birgisson. He
explains PHP quoting.

You should be able to insert a row by "doubling" the single quote, as
follows:

mssql_query("insert mytable values ('It''s a boy')");

--jkl
-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the original
message. Please note that we do not accept account orders and/or instructions
by e-mail, and therefore will not be responsible for carrying out such orders
and/or instructions.






Archive powered by MHonArc 2.6.24.

Top of Page