Page 1 of 1

one simple php/mysql question

Posted: Sat Dec 08, 2007 9:33 am
by ekosoftco
this is probably a dumb question, but ive searched for a good hour on it. I store all my page data in a database, and i was wondering how to put html tags like bold or images into the database, so when they get pulled and displayed on the page, it shows the image or tag correctly.
what i do is do a query, result, row, and pull the row with the text onto the page in php. every time it has a tag in it though, it simple shows the tag, like "<b>" instead of making it bold.

Posted: Sat Dec 08, 2007 9:35 am
by feyd
Sounds like you're automatically pushing the data through htmlspecialchars() or htmlentities().

Posted: Sat Dec 08, 2007 10:01 am
by ekosoftco
thanks :)