Re: Newbie question about SQL result formatting
| From: | Analysis & Solutions | Date: | Fri, 09 Aug 2002 21:10:07 +0000 |
| Subject: | Re: Newbie question about SQL result formatting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111896@lists.php.net to get a copy of this message | ||
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 <pre> tags. Or if you want the
regular font, in PHP use the nl2br() function.
--Dan
PS: For future reference... The mailing list archive is at
http://groups.google.com/groups?hl=en&safe=off&group=php.general
Putting in the search terms "line break" produces a plethora of results
with this same answer.
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409