Jump to content

Nl2br Can't Appear Images From Tinymce


virak

Recommended Posts

Dear all,I have some problem with my textarea box that i use TinyMCE editor.I do a post date(text,image ..etc) into database: nl2br($_post["textarea"]);but when display databse on webpage: nl2br($date[textarea_value]);it display only TEXT that has table aligment but the image deosn't show at all.Anyone can help me on how to show image on webpage when i post data use textarea-tinymce.ThanksVirak

Link to comment
Share on other sites

Print out the value in the database to see what's being saved. You don't need to use nl2br twice, either use it when you save the data or when you print it. If you use it twice you'll end up with 2 <br> tags for every line break.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...