This works fine on my dev server
$replace = str_replace("\\'", "'", $row['text']);
I'm trying to replace any occurences of \' (which have been escaped in the mysql database) with '.
It works great on my dev server which is win 7 ultimate. However when I go to production win2k8 r2 pointed to a mysql database on a win2k3 server it doesn't replace anything. The only thing I can think of is that the ' character on the mysql server, which is older, is different than the ' character on the new server where php is hosted. Any ideas around this?