Hi
I'm storing text fields in mysql. These fields are retrieved and in a table. However some of the fields are quite long, and I need to be able to wrap them so that they do not stretch across the whole length of the page in a table.
I tried using substr to split $description into smaller groups of 60 characters. Then in the table I just used <br /> to start a new line. This obviously resulted in some words being split in two.
What I really need is a way of spliting $description via the first white space after 60 characters, then the first space after 120 characters etc.
Thanks in advance for any help
Cheers
Chris