Posted by gosha bine on 08/15/07 10:46
On 15.08.2007 12:24 Krustov wrote:
> www.outerlimitsfan.co.uk/render.jpg
>
> The browser names are pulled from a array and most of the time get
> displayed with no problems .
>
> But sometimes only the first letter of the browser name gets displayed
> as shown in the above image .
>
> ? .
>
>
>
>
>
> $broo[1]="Internet Explorer";
> $broo[2]="Firefox";
> $broo[3]="Opera";
> $broo[4]="Safari";
> $broo[5]="Macintosh";
> $broo[6]="Unknown";
>
> ?>
>
> <table border="0" cellspacing="4" cellpadding="0" align="center">
> <?php
> $tvx=1;
> while ($tvx<7)
> {
> $zod=$broo[$tvx];
> $uzi="users";
> if ($curd[$tvx]==0) {$uzi="";}
> if ($curd[$tvx]==1) {$uzi="user";}
> print "<tr>";
> print "<td class=bba> </td>";
> print "<td class=vva>$zod</td>";
> print "<td class=bba> </td>";
> print "<td>$hippy1</td>";
> print "<td align=right class=ppa>$curd[$tvx]</td>";
> print "<td class=ppa>$uzi</td>";
> print "<td class=bba> </td>";
> print "<td>$hippy2</td>";
> print "<td align=right class=kka>$jamm[$tvx]</td>";
> print "<td class=kka>most ever online</td>";
> print "<td class=bba> </td>";
> print "</tr>";
> $tvx=$tvx+1;
> }
> ?>
> </table>
I like your variable naming. ;)
Try var_dump instead of echo add look what it says.
--
gosha bine
makrell ~ http://www.tagarga.com/blok/makrell
php done right ;) http://code.google.com/p/pihipi
[Back to original message]
|