From: "Evan Morris" <[EMAIL PROTECTED]>

> 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 (
To unsubscribe, visit:

Reply via email to