Hi. I am entering text into the DB from a textarea field that has 25 cols. This means it adds a linebreak every 25 characters(i think). So i am entering the text into the DB and it looks like this.
ZZZZZZZZZZZZZZZZZZZ
ZZZZZZZZZZZZZZZZZZZ
ZZZZZZZZZZZZZZZZZZZ
ZZZZZZ
Now i am pulling the text out of the DB and displaying it in a table. Like this
If ($ResultArray [4] != ""){
Print "<tr>";
Print "<td width = 325><font color=\"#FF0000\"><b>".nl2br($ResultArray [4])."</font></b></td>";
Print "</tr>";
}
Now the problem is the text comes out as one really long line and stretches the table out instead of staying within the table and using wordwrap. example:
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
So how can i confine this text to the borders of the table and not let it stretch out the table?
Thanks!😃