Portal Home > Knowledgebase > Articles Database > php mysql image issue wont show
php mysql image issue wont show
Posted by mystycs, 03-01-2010, 09:39 PM |
I have a comment script, and if i type for example
to show an image, in the mysql it turns into
But if i edit it in mysq it works fine.
How can i make it so when i type in the image code it doesnt get garbeled so it can actually display images?
Thanks
|
Posted by Paul, 03-01-2010, 10:43 PM |
Looks like something is running htmlentities() on the input,
Run the string thru html_entity_decode() to return it to normal
Encoded: <img src="link here"/>
Decoded:
|
Posted by mattle, 03-02-2010, 09:32 AM |
Well, you're not giving us any information on how it's getting into the database, so it's kinda hard to help troubleshoot...
|
Add to Favourites Print this Article
Also Read