[snip] Have been given the solution and applied it to the code <?php $new_string = wordwrap($row['fname'], 20, "<br />\n");echo $new_string; ?> Why does it not work? What is the output of the echo statement? An unwrapped string the same as before. [/snip] Because you didn;t follow the instructions on http://www.php.net/wordwrap ...set the cut (4th parameter of wordwrap <?php $new_string = wordwrap($row['fname'], 20, "<br />\n", 1);echo $new_string; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php