[Gllug] mySQL and PHP

Bruce Richardson brichardson at lineone.net
Tue Jul 10 18:00:23 UTC 2001


On Tue, Jul 10, 2001 at 12:49:14PM +0100, Jackson, Harry wrote:
> Question:
> 	How do I format the text in the field.

How are you showing it?  If you stick it into a table cell, it'll be
automatically word-wrapped.  If you want to show it in an editable form,
put it in a textarea box - that should (your browser may vary) use the
newlines in your text (if there are any).

Alternatively, if you want to show the text inline then you could either
put it within <PRE> tags or run it through the PHP nl2br function, which
handily translates all your newlines into breaks.



-- 
Bruce

Those who cast the votes decide nothing.  Those who count the
votes decide everything. -- Joseph Stalin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 261 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20010710/db795c57/attachment.pgp>


More information about the GLLUG mailing list