Re: Infinite Loop Issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




To get to that point, you are doing a loop of size "X" where "X" = the row
number being processed. ie row "2" is doing a foreach over 2 entries. row 15
is doing a foreach over 15 entries. row 90 is doing a foreach over 90
entries.

That's not QUITE right. The value of $issues will always be set to the
column value for the next row when $all->fetch() is called, therefore
overwriting the value it had after the previous iteration. The
variable $row2 should be set to an empty array before the foreach loop
just in case different rows have different numbers of issues.

You're right, I missed that $issues was a bind_result.

--
Postgresql & php tutorials
http://www.designmagick.com/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux