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.
one simple php/mysql question
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Sounds like you're automatically pushing the data through htmlspecialchars() or htmlentities().