I would like to replace all the back slashes in my database but I am getting an error when I try to do so. Here is the code I use to replace (it works fine with all other characters)
if($queryType=='replace') {
$sql[$handle]['sql'] = 'UPDATE '.$table.' SET '.$field.' = REPLACE('.$field.',\''\'\',\''Value to replace with'\')';
I think you need to escape the back slashes with back slashes. for example ‘\\’.