floppydrivez Posted May 5, 2007 Share Posted May 5, 2007 Yeah I am kinda new to php, but here is my simple problem. I have a tutorials mod and php is stripping out the escape slash in some of my snipplets. Can anyone point me in the right direction for a fix? Link to comment https://forums.phpfreaks.com/topic/50149-solved-stripslashes-messing-up-my-code-samples/ Share on other sites More sharing options...
floppydrivez Posted May 5, 2007 Author Share Posted May 5, 2007 Where your inserting into the db $t_text = mysql_real_escape_string(stripslashes(FixQuotes($t_text))); Where your outputting (to combat the extra ') $lousymarks = array("''''", "''"); $mypage[t_text] = str_replace($lousymarks, "'", $mypage[t_text]); Link to comment https://forums.phpfreaks.com/topic/50149-solved-stripslashes-messing-up-my-code-samples/#findComment-246263 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.