Just in case people are confused:
....stuff....
}Just means loop forever. 1 is always "true", so the while loop
always runs. You need an internal exit condition to exit the loop,
hence the
last unless ... stuff..;
As I said before, the only thing that appears to be changed, is
that $offset is incremented
$offset++;
between the end of the foreach loop (where the categories are iterated) and the next iteration of the 'while' loop -- which is _never_ supposed to occur.
But, $offset is also incremented (has one added to it's value before being used) in the ->query statement. Again, I can't figure that out.
It would seem it was either a hold-over from 'old' logic that was re-done for the release, or it was a first step to some new logic that wasn't implemented. I just don't get it....
http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/
Code:
while (1) { ....stuff....
}
always runs. You need an internal exit condition to exit the loop,
hence the
last unless ... stuff..;
As I said before, the only thing that appears to be changed, is
that $offset is incremented
$offset++;
between the end of the foreach loop (where the categories are iterated) and the next iteration of the 'while' loop -- which is _never_ supposed to occur.
But, $offset is also incremented (has one added to it's value before being used) in the ->query statement. Again, I can't figure that out.
It would seem it was either a hold-over from 'old' logic that was re-done for the release, or it was a first step to some new logic that wasn't implemented. I just don't get it....
http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/