Before anything is inserted into my site's DB, I run addslashes() on it. When the function is used, data in the DB looks exactly like it did when it was submitted. For example, if a user enters O'Reilly in a form, it will appear as O'Reilly in the database (when viewed in phpmyadmin, at least.) This seems to negate the need for stripslashes() when displaying text from the database, as there are no slashes in the string.
When addslashes is run, shouldn't the text in the database read O\'Reilly? Or is my site experiencing PHP's normal behavior with slashes?
ETA: FWIW, magic_quotes_gpc is on.