New Paragraphs

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
birchtrees
Forum Newbie
Posts: 3
Joined: Thu Sep 05, 2002 2:29 pm

New Paragraphs

Post by birchtrees »

Hello
I am inserting a long description on my page from a mysql database. My problem is I can't create a new paragraph on my web page. I have tried the 0182 code but it doesn't work. I realize it must be simple but I'm not sure what to do.
Thanks very much
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Try This

Post by icesolid »

Have you tried to use the wordwrap(); or nl2br(); function. I believe it will help solve your problem.
Last edited by icesolid on Wed Mar 01, 2006 4:44 pm, edited 5 times in total.
User avatar
mr_griff
Forum Commoner
Posts: 64
Joined: Tue Sep 17, 2002 11:11 am
Location: Bozeman, Montana

Post by mr_griff »

If the text already has formatting for paragraphs, you can also try the nl2br function.

http://www.php.net/manual/en/function.nl2br.php
Post Reply