Re: Re[2]: [PHP] HTML to mysql - from msql to html

From: Date: Sun, 05 May 2002 20:16:39 +0000
Subject: Re: Re[2]: [PHP] HTML to mysql - from msql to html
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-96177@lists.php.net to get a copy of this message
On Monday 06 May 2002 06:01, Mantas Kriauciunas wrote: > Hey PHP General List, > > ok i solwed the problems with line breaks.... but i didn't use > nl12br() function. i did like this: > > $newz = str_replace("\n","<br>",$myrow[3]); > > now i am having problems with spaces > > text is: > --------------- > bla bla bla foo > --------------- > > and shows: > --------------- > bla bla bla foo > --------------- > > what do i have to do to get all those spaces? as i understand(english > is weak) nl12br() is for breaks only. what about spaces? replace the spaces with a non-breaking space: &nbsp; -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* It is a lesson which all history teaches wise men, to put trust in ideas, and not in circumstances. -- Emerson */

« previous php.general (#96177) next »