ecabrera Posted November 18, 2011 Share Posted November 18, 2011 i need to make it so it removes the \ like this <iframe src=\"http://www.rockstargames.com/videos/embed/8001\" width=\"640\" height=\"360\" frameBorder=\"0\" scrolling=\"no\"></iframe> Quote Link to comment https://forums.phpfreaks.com/topic/251349-remove/ Share on other sites More sharing options...
QuickOldCar Posted November 18, 2011 Share Posted November 18, 2011 http://php.net/manual/en/function.stripslashes.php Quote Link to comment https://forums.phpfreaks.com/topic/251349-remove/#findComment-1289169 Share on other sites More sharing options...
ecabrera Posted November 18, 2011 Author Share Posted November 18, 2011 so like this $intro = stripslashes($row ['intro']); $latestnews = stripslashes($row ['latestnews']); $maincontent= stripslashes($row ['maincontent']); $mainvideos = stripslashes($row ['mainvideos']); Quote Link to comment https://forums.phpfreaks.com/topic/251349-remove/#findComment-1289171 Share on other sites More sharing options...
Pikachu2000 Posted November 18, 2011 Share Posted November 18, 2011 If you have backslashes being stored in the database, the problem is occurring when the data is being inserted. In all likelihood, magic_quotes_gpc is set to ON in your PHP.ini file. It should not be. Quote Link to comment https://forums.phpfreaks.com/topic/251349-remove/#findComment-1289172 Share on other sites More sharing options...
ecabrera Posted November 18, 2011 Author Share Posted November 18, 2011 thanks problem fix Quote Link to comment https://forums.phpfreaks.com/topic/251349-remove/#findComment-1289173 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.