Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: nph-build problem -- abort or looping

Quote Reply
Re: nph-build problem -- abort or looping In reply to
Just in case people are confused:

Code:
while (1) {
....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/

Subject Author Views Date
Thread nph-build problem -- abort or looping pugdog 11631 Aug 29, 2000, 12:32 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11496 Aug 29, 2000, 12:38 PM
Thread Re: nph-build problem -- abort or looping
qango 11392 Aug 29, 2000, 1:32 PM
Post Re: nph-build problem -- abort or looping
Stealth 11381 Aug 29, 2000, 1:40 PM
Thread Re: nph-build problem -- abort or looping
startpoint 11408 Aug 29, 2000, 2:24 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11395 Aug 29, 2000, 3:39 PM
Thread Re: nph-build problem -- abort or looping
qango 11400 Aug 29, 2000, 3:47 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11417 Aug 29, 2000, 3:52 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11398 Aug 30, 2000, 1:25 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11405 Aug 30, 2000, 3:30 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11383 Aug 30, 2000, 6:11 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11372 Aug 30, 2000, 6:36 AM
Thread Re: nph-build problem -- abort or looping
Stealth 11352 Aug 30, 2000, 7:51 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11381 Aug 30, 2000, 4:04 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11358 Aug 30, 2000, 5:05 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11359 Aug 30, 2000, 5:20 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11383 Aug 30, 2000, 6:02 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11364 Aug 30, 2000, 6:14 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11383 Aug 30, 2000, 6:29 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11369 Aug 30, 2000, 6:50 PM
Post Re: nph-build problem -- abort or looping
pugdog 11359 Aug 30, 2000, 7:30 PM
Thread Re: nph-build problem -- abort or looping
Alex404 11380 Aug 31, 2000, 12:42 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11355 Aug 31, 2000, 10:58 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11331 Aug 31, 2000, 2:06 PM
Thread to Alex
AndreasH 4438 Aug 31, 2000, 2:51 PM
Thread Re: to Alex
Stealth 4415 Aug 31, 2000, 3:09 PM
Thread Re: to Alex
AndreasH 4423 Aug 31, 2000, 3:18 PM
Post Re: to Alex
Stealth 4396 Aug 31, 2000, 3:25 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4435 Aug 31, 2000, 4:30 PM
Thread Re: nph-build problem -- abort or looping
pugdog 4407 Aug 31, 2000, 5:51 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4405 Aug 31, 2000, 6:27 PM
Thread Re: nph-build problem -- abort or looping
Alex404 4402 Sep 1, 2000, 1:38 AM
Post Re: nph-build problem -- abort or looping
AndreasH 4390 Sep 1, 2000, 3:32 AM
Post To all who helped me!
AndreasH 4379 Sep 1, 2000, 4:44 PM
Post Re: nph-build problem -- abort or looping
Alex404 11366 Aug 30, 2000, 7:50 AM