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? R. while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ ?> <td width="100" height="40" bgcolor="#99FF33"><?php $new = wordwrap($row['fname'], 20, "<br />\n");echo $new; ?></td> <td width="100"><?=$row['sname'];?></td> <td width="300"><?=$row['organisation'];?></td> <? if (!$row['email']==""){ ?> <td width="300"><div align="left"><a href="view_details.php?id=<?=$row['id'];?>&sname=<?=$row['sname'];?>">details</a> | <a href="edit.php?id=<?=$row['id'];?>&sname=<?=$row['sname'];?>">edit</a> | <a href="delete.php?id=<?=$row['id'];?>&sname=<?=$row['sname'];?>">delete</a> I <a href="mailto:<?=$row['email']; ?>">email</a></div></td> <? } else { ?> <td width="300"><div align="left"><a href="view_details.php?id=<?=$row['id'];?>&sname=<?=$row['sname'];?>">details</a> | <a href="edit.php?id=<?=$row['id'];?>&sname=<?=$row['sname'];?>">edit</a> | <a href="delete.php?id=<?=$row['id'];?>&sname=<?=$row['sname'];?>">delete</a></div></td> <? } ?> </tr> <? } } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php