Display paragraphs from a mysql db

From: Date: Sun, 24 Jun 2007 22:03:53 +0000
Subject: Display paragraphs from a mysql db
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-257735@lists.php.net to get a copy of this message
hi all, I have a news section on a website that im coding that isnt displaying properly. Every paragraph in each news post is being displayed as one big paragraph. how can i display my paragraphs in proper form? The field the news story is stored in is set as longtext. here is a link to view. http://area51.chalkthree.com/index.php?pg=3 the first update shows what im having an issue with. each item in the numbered list should be on a seperate line. there are some line breaks as well for new paragraphs that arent displaying properly. here is the code i have: while($myrow = mysql_fetch_array($newsresults))
             {
	     print "<br>";
                    print $myrow['news_topic'];
                    print "             ";
                    print $myrow['news_author'];
                    print "   ";
	     print $myrow['topic_date'];
	     print "<br>";
	     print $myrow['news_message'];
                    print "<br>\n";
} _________________________________________________________________ Who's that on the Red Carpet? Play & win glamorous prizes. http://club.live.com/red_carpet_reveal.aspx?icid=REDCARPET_hotmailtextlink3

« previous php.general (#257735) next »