Escaping an '

------=_NextPart_000_00AC_01CB6D83.3BF00480
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

For a query similar to:

SELECT * FROM `tablle` WHERE `column` LIKE 'Sally's Hair Parlor'

how do I escape the ' for 's?


------=_NextPart_000_00AC_01CB6D83.3BF00480--
ron.piggott [ So, 17 Oktober 2010 04:41 ] [ ID #2049280 ]

Re: Escaping an '

Ron Piggott wrote:

> For a query similar to:
>
> SELECT * FROM `tablle` WHERE `column` LIKE 'Sally's Hair Parlor'
>
> how do I escape the ' for 's?

It's in the manual - assuming you use mysql, see
http://php.net/manual/en/book.mysql.php


Cheers
--
David Robley

"I just won 1000 dollars," Tom said grandly.
Today is Setting Orange, the 71st day of Bureaucracy in the YOLD 3176.


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
David Robley [ So, 17 Oktober 2010 06:09 ] [ ID #2049281 ]

Re: Escaping an '

Mysql_real_escape_string($bar)

Bastien Koert
905-904-0334
Sent from my iPhone

On 2010-10-16, at 10:41 PM, "Ron Piggott" <ron.piggott [at] actsministries.org> w=
rote:

> For a query similar to:
>
> SELECT * FROM `tablle` WHERE `column` LIKE 'Sally's Hair Parlor'
>
> how do I escape the ' for 's?
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Phpster [ So, 17 Oktober 2010 15:10 ] [ ID #2049282 ]
PHP » gmane.comp.php.database » Escaping an '

Vorheriges Thema: Query for duplicate records
Nächstes Thema: Re: SOUNDS_LIKE, SOUNDEX