RE: [PHP] Text and formating

From: Date: Wed, 07 Mar 2001 18:21:04 +0000
Subject: RE: [PHP] Text and formating
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42924@lists.php.net to get a copy of this message
nl2br -- Inserts HTML line breaks before all newlines in a string http://php.net/manual/en/function.nl2br.php -Brian > -----Original Message----- > From: sono@selectcomm.ab.ca [mailto:sono@selectcomm.ab.ca] > Sent: Wednesday, March 07, 2001 12:09 PM > To: php-general@lists.php.net > Subject: [PHP] Text and formating > > > > I have news webpage of sorts that pulls entries out of a mysql database. > > There is a form to submit news and it is automatically added to the new > page upon submition. > > What I am wandering is when a individual submits news, the end result on > my news page does not hold the same format it was put in. For > example. > > IN the "add news form" they enter the info in like this: > ---------------------------------------------------------------------- > This is a test. > > How are you today. > Laddi da, Laddi da > ------------------------------------------------------------------ > ------------ > > The output on the news page comes as: > ------------------------------------------------------------------------ > This is a test. How are you today.Laddi da, Laddi da > ------------------------------------------------------------------------ > > Is there a way between php and mysql to ensure that format of the date is > same going in and out? > > Thank you in advance:) > Sono > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#42924) next »