virak Posted October 30, 2009 Report 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 Report 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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now