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.
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php