Im using mysql_real_escape_string() to add slashes before I insert data into my MySQL database. The data gets escaped correctly (I even check this with a couple of echo statements before and after the escaping function.
On another page, when I retrieve the info from the DB the slashes are gone. Basically what I have right now, is a fully working site without a single strpslashes() call and plenty of mysql_real_escape_string() calls.
I think that there might be something wrong. What could it be?
I tried these scripts in two servers:
PHP 4.3.2 with Zend Optimizer, and 4.3.4 without
MySQL versions 3.23.56, and 5.0.1-alpha
These settings on both servers:
magic_quotes_gpc Off
magic_quotes_runtime Off
magic_quotes_sybase Off