You are here: Re: Formatting string to start new line « All PHP « IT news, forums, messages
Re: Formatting string to start new line

Posted by Geoff Berrow on 10/10/51 11:39

Message-ID: <1139484540.589785.174190@f14g2000cwb.googlegroups.com> from
chris contained the following:

>
>How can I bring Mr J Black unto a new line automatically. I've included
>the code I am using below.

Use non breaking spaces. Something like:

<?php
while ($myrow = mysql_fetch_row($result)) {
if($myrow[3] != "" AND $myrow[4] != "" ) {
$strtitle = $myrow[3]."&nbsp;&amp;&nbsp;".$myrow[4];
} else {
$strtitle = $myrow[3].$myrow[4];
}
if($strtitle != "") {
$str[] .= "&nbsp;$myrow[1] <b>$strtitle</b>";
} else {
$str[] .= "&nbsp;$myrow[1]";
}
}
echo implode($str,",");
?>
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

 

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

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