I have small php script that i use to store php codes and have there for future reference if i ever forget.
the question is when i insert into the databse
[php]
"; } ?>
[/php]
when I retreive it back i get
[php]
$array = array(1, 2, 3, 4,5,6,7,8,9,0);
foreach ($array as $x)
{
echo $x."
";
}
?>
[/php]
as you can see i lost part of the codes
at the moment i’m using mysql_real_escape_string
what can i do to get the codes insert back the same?