I am having problems getting text strings from a Db to wrap to the table cell if Firefox. It just continues out across the page as if a table cell weren't even there. I tried passing the string thru wordwrap() but it did nothing, is anyone familiar with how this is done?...
You're probably looking for the nl2br function. That assumes that your DB data just has new line characters as opposed to the <br /> type code required in HTML.
Hi, have you try this one. <?php $text = "The quick brown fox jumped over the lazy dog."; $newtext = wordwrap($text, 20, "<br />\n"); echo $newtext; ?> http://www.php.net/manual/en/function.wordwrap.php Example 2374. wordwrap() example Thanks, Mike
@ Gigamike That made some leeway only now it seems I need to parse for the hrefs. So it doesn't break the code when it breaks inside an href.. Any idea how to do this?