adam291086 Posted December 10, 2007 Share Posted December 10, 2007 Ok i have a rich text editor linked up to a database. This submits all the html coding for my websites content. How would i go about validating this to prevent mysql injections? Link to comment https://forums.phpfreaks.com/topic/81002-solved-rich-text-editor/ Share on other sites More sharing options...
rajivgonsalves Posted December 10, 2007 Share Posted December 10, 2007 the same way you'd do it for any other page, in your php page Link to comment https://forums.phpfreaks.com/topic/81002-solved-rich-text-editor/#findComment-410954 Share on other sites More sharing options...
trq Posted December 10, 2007 Share Posted December 10, 2007 I wouldn't see it would be any different to how you would normally tackle it. Take a look at mysql_real_escape_string. Link to comment https://forums.phpfreaks.com/topic/81002-solved-rich-text-editor/#findComment-410955 Share on other sites More sharing options...
adam291086 Posted December 10, 2007 Author Share Posted December 10, 2007 could the code execute? This is because any php or mysql will be within its <?php ?> Link to comment https://forums.phpfreaks.com/topic/81002-solved-rich-text-editor/#findComment-410957 Share on other sites More sharing options...
trq Posted December 10, 2007 Share Posted December 10, 2007 could the code execute? Not likely. Not unless your running anything through eval for some strange reason. Link to comment https://forums.phpfreaks.com/topic/81002-solved-rich-text-editor/#findComment-410973 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.