Re: count() multidimensional array
| From: | Hugh Bothwell | Date: | Sun, 20 May 2001 05:10:39 +0000 |
| Subject: | Re: count() multidimensional array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53577@lists.php.net to get a copy of this message | ||
""Dean Martin"" <dlmartin@cvn.net> wrote in message
news:NEBBJLLDMLCJHBJBAMMGEEMADGAA.dlmartin@cvn.net...
> My code to list only the rows that were checked is this..
>
> for ($j=1 ; $j=5; $j++)
<SNIP>
> This code is creating an endless loop and times out the server with memory
> overruns.
>
> What am I missing?
In the end-loop condition, you're using assignment ('=') instead of if-equal
('==').
Effectively, the loop runs until 5 == 0 ;-)