wrapping problem continued

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux