vikram8jp Posted February 20, 2009 Share Posted February 20, 2009 Hello all, I am developing a small Q&A forum for my website. I was wondering how do you generally store HTML content in mysql with application developed in PHP. Like for the forums which allow the rich-text formatting tools like the one I am typing my question in right now ( bless phpfreaks), how do you store HTML in database? 1. I guess they use the BBCode most of the times. 2. If we store the BBCoded data in database as it is. Like for example I enter the text like for example, [html]hello[/html] If this is stored as it is, and then I want to implement a search functionality and I enter the word "html", it will display this post. But it shouldn't, right? What's your opinion guys.... it would be very helpful if I get to know the techniques used generally. Thanks and Regards Vikram Link to comment https://forums.phpfreaks.com/topic/146098-how-to-store-html-like-content-in-forums/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.