PunkSktBrdr01
08-21-2003, 04:20 PM
I'm using a script to extract stories from a MySQL database, and I was wondering if there is a way to preserve new lines. Would I need to do anything before the stories are put into the database? Thanks!
|
Click to See Complete Forum and Search --> : preserving new lines PunkSktBrdr01 08-21-2003, 04:20 PM I'm using a script to extract stories from a MySQL database, and I was wondering if there is a way to preserve new lines. Would I need to do anything before the stories are put into the database? Thanks! pyro 08-21-2003, 04:22 PM Not 100% what you are asking, but perhaps you need nl2br() (http://www.php.net/nl2br)... Note that if that is what you are looking for, you'll want to use it when you pull the data from the database rather than when you put the data into the DB. PunkSktBrdr01 08-21-2003, 04:24 PM Thank you very much! That's exactly what I was looking for. pyro 08-21-2003, 10:32 PM You are welcome... :) webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |