virak Posted October 30, 2009 Share Posted October 30, 2009 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 More sharing options...
justsomeguy Posted October 30, 2009 Share Posted October 30, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.