For the last 4 years I've run a site mistakenly using both magic quotes and mysql_real_escape_string
simultaneously.
This has resulted in all manner of different format strings being stored where in most cases quotes are doubly escaped and thus incorrectly shown when selected from the database.
I've know realized that having both on is incorrect and with the dropping of magic quotes in php6 will be turning that off asap.
The main question is are there any existing scripts/functions that exist to recover some of the incorrectly stored values within strings in a database?
It would then be possible to loop through all 'text' columns and replace these occurrences to what they should correctly be without having to manually go through thousands of rows.
I'd imagine with magic quotes support being dropped in the near future that there may be a need for such a script as users switch from one to the other?