Page 1 of 1

empty lines in db, not in html

Posted: Sun Dec 07, 2008 1:25 pm
by eggnogg
hey everybody
so in sending info to a db, with line breaks, from a textarea were the user presses 'enter'
the line breaks are saved in the db without any coding like so:

row 1

row 2



when i retrieve it to html it goes

row 1 row 2


im stripping all html and php tags, so i cant try and use html tags i suppose so how could i go about and maintain the format once rendered on html?

thanks

Re: empty lines in db, not in html

Posted: Sun Dec 07, 2008 1:28 pm
by Syntac

Re: empty lines in db, not in html

Posted: Sun Dec 07, 2008 1:36 pm
by eggnogg
wow, thanks! :)