Re: Apostrophe problem on Firebird

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Evan Morris" <evan@xxxxxxxxxxxxxxxxxx>

> I have data in a database that may contain apostrophes.

Some databases use the backslash character as an escape character for single
quotes, while others use another single quote. Try your query such as:

SELECT * FROM Table WHERE name = 'o''mallery'

Instead of using addslashes(), you'll need to do a simple str_replace to
escape the characters.

---John Holmes...

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux