Re: [PHP] Newbie question about SQL result formatting

2002-08-09 Thread Analysis & Solutions
On Fri, Aug 09, 2002 at 10:55:52PM +0200, Kristoffer Strom wrote: > > How do I convert the result to HTML code, I especially want the linebreaks!! Two options. Put the output in between tags. Or if you want the regular font, in PHP use the nl2br() function. --Dan PS: For future reference.

[PHP] Newbie question about SQL result formatting

2002-08-09 Thread Kristoffer Strom
Ok, this is totally newbie but I just started messing around with PHP after programming IBM's NetData for a while. My first big problem I haven't been able to solve myself is how to format the result of an SQL query into HTML code. In the (MySQL) database, I have one field for very long texts. On