Received: from newman.hartehanks.com (newman.hartehanks.com [204.89.158.3]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5EJ0Qa46524; Thu, 14 Jun 2001 15:00:26 -0400 (EDT) (envelope-from Timothy_Maguire@hartehanks.com) Received: from oldman.hartehanks.com (oldman [194.104.30.176]) by newman.hartehanks.com (8.11.2/8.11.2) with ESMTP id f5EIUgQ19708; Thu, 14 Jun 2001 14:30:42 -0400 Received: from linmail.hartehanks.com (unverified) by oldman.hartehanks.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Thu, 14 Jun 2001 14:16:14 -0400 Subject: Re: Re(2): Test (fwd) To: "Adam Lang" Cc: pgsql-php@postgresql.org, pgsql-php-owner@postgresql.org X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: Timothy_Maguire@hartehanks.com Date: Thu, 14 Jun 2001 14:25:47 -0400 X-MIMETrack: Serialize by Router on linmail/Harte-Hanks(Release 5.0.7 |March 21, 2001) at 06/14/2001 02:25:44 PM MIME-Version: 1.0 Content-type: text/plain; charset="us-ascii" X-Archive-Number: 200106/25 X-Sequence-Number: 422 you can use the addslashes() function. This will make O'Brien O\'Brien and the db will take it. In php4 this happens by default Tim. Timothy P. Maguire Web Developer II Harte-Hanks 978 436 3325 "Adam Lang" ance.com> cc: Sent by: Subject: Re: Re(2): Test (fwd) pgsql-php-owner@post gresql.org 06/14/01 01:28 PM It could fluctuate on each database, so always check the appropriate documentation, but... the standard way usually is to double the apostrophe O'Brien would be O''Brien (the middle is two apostrophes, not a quote) Adam Lang Systems Engineer Rutgers Casualty Insurance Company http://www.rutgersinsurance.com ----- Original Message ----- From: "Gary Hoffman" To: Cc: Sent: Thursday, June 14, 2001 1:12 PM Subject: Re(2): [PHP] Test (fwd) > aalang@rutgersinsurance.com writes: > > > >Plus, you have to make sure to check for apostrophes. That will break > >your > >SQL statement if someone typed them into the text field. > > > > Well, this caveat had never occured to me. So how does someone enter > strings with enclosed apostrophes, as in the Irish surname O'Mallory or > the Yemeni placename Sana'a? > > Gary > > ************************************************************************** > * Gary B. Hoffman, Computing Services Manager e-mail: ghoffman@ucsd.edu * > * Graduate School of International Relations and Pacific Studies (IR/PS) * > * University of California, San Diego (UCSD) voice: (858) 534-1989 * > * 9500 Gilman Dr. MC 0519 fax: (858) 534-3939 * > * La Jolla, CA 92093-0519 USA web: http://www-irps.ucsd.edu/ * > ************************************************************************** > > ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster