You are here: wrapping problem continued « PHP « IT news, forums, messages
wrapping problem continued

Posted by "Ross" on 08/24/05 17:37

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>
<?
}
}
?>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация