Re: Re(2): Test (fwd) - Mailing list pgsql-php

From Adam Lang
Subject Re: Re(2): Test (fwd)
Date
Msg-id 00f301c0f4f7$70ef3c00$330a0a0a@rutgersinsurance.com
Whole thread Raw
In response to Test (fwd)  (Chadwick Rolfs <c2304182@webdevel.urban.csuohio.edu>)
List pgsql-php
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" <ghoffman@ucsd.edu>
To: <pgsql-php@postgresql.org>
Cc: <aalang@rutgersinsurance.com>
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/ *
> **************************************************************************
>
>


pgsql-php by date:

Previous
From: "Gary Hoffman"
Date:
Subject: Re(2): Test (fwd)
Next
From: Timothy_Maguire@hartehanks.com
Date:
Subject: Re: Re(2): Test (fwd)