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]." & ".$myrow[4];
} else {
$strtitle = $myrow[3].$myrow[4];
}
if($strtitle != "") {
$str[] .= " $myrow[1] <b>$strtitle</b>";
} else {
$str[] .= " $myrow[1]";
}
}
echo implode($str,",");
?>
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
[Back to original message]
|