dennismonsewicz Posted May 6, 2008 Share Posted May 6, 2008 when setting up a database field to house text and HTML tags, what is the best setting for that field? IE. VARCHAR, text, blob Link to comment https://forums.phpfreaks.com/topic/104413-html-stored-into-datbase/ Share on other sites More sharing options...
ILYAS415 Posted May 6, 2008 Share Posted May 6, 2008 well it depends how long the text is actually going to be. Personally i would prefer to use the 'longtext' type. Also dont forget that when putting your html tags etc into the db to use the function htmlentities so that u dont accidently sql inject urself Link to comment https://forums.phpfreaks.com/topic/104413-html-stored-into-datbase/#findComment-534515 Share on other sites More sharing options...
dennismonsewicz Posted May 6, 2008 Author Share Posted May 6, 2008 thanks I am going to give it a shot Link to comment https://forums.phpfreaks.com/topic/104413-html-stored-into-datbase/#findComment-534532 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.