wrapping problem continued

From: Date: Wed, 24 Aug 2005 14:37:38 +0000
Subject: wrapping problem continued
Groups: php.general 
Request: Send a blank email to php-general+get-221268@lists.php.net to get a copy of this message
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> <? } } ?>

« previous php.general (#221268) next »