Re: echo?
| From: | Daniel Brown | Date: | Tue, 22 Mar 2011 22:39:58 +0000 |
| Subject: | Re: echo? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-311987@lists.php.net to get a copy of this message | ||
On Tue, Mar 22, 2011 at 18:22, Jim Giner <jim.giner@albanyhandball.com> wrote:
[snip!]
>
> for ($i=0;$i<$rows;$i++)
> echo $i.' '.$row['itemname'];
>
> I expected to see :
>
> 1 item1
> 2 item2
> ...
> ...
>
> but instead I got
>
> 1 item1
> f item2
>
> Yes - an 'f' and not a 2.
>
> Tried it some more with this:
>
> for ($i=1;$i<10;$i++)
> echo $i." item".'<br>';
>
> and got
>
> c item
> d item
> e item
> f item
> g item
> ....
> and so on.
That sounds very odd. Can you show us the actual surrounding code, Jim?
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/