bubbles19518
10-27-2007, 04:40 AM
So I have data that I enter into a DB, I clean it using this code:
foreach($_POST as $key => $value)
{
$_POST[$key] = mysql_real_escape_string($_POST[$key]);
}
It adds the \ to ",',/... This obviously stays there when I SELECT it from the DB. I was wondering if there was a way to bring the text back to its original state without doing str_replace() to all the different characters it changes.
foreach($_POST as $key => $value)
{
$_POST[$key] = mysql_real_escape_string($_POST[$key]);
}
It adds the \ to ",',/... This obviously stays there when I SELECT it from the DB. I was wondering if there was a way to bring the text back to its original state without doing str_replace() to all the different characters it changes.