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
Interesting point -- "blame MySQL" <G>

Your explanation would seem to work, which is why the two changes of increasing the limit to "max_num_categories" and eliminating the loop worked. We built all the categories, up to the "max_num_categories" and travelled through the 'loop' exactly once.

One thing I didn't think of is to look at the MySQL version.

There are/have been tweaks of MySQL and how it handles these conditions through the versions. That would explain why it works for some people, but not others, in a fashion independent of the actual code -- it's the _database_ causing problems, not the code <groan>

So... everyone... cough it up. What versions of MySQL are you running?????


Now... one thing. The logic bug.

We want $offset to be =1 the _first_ time through? If so, then $offset=1, get rid of the '$offset+1' in the query. Leave the increment $offset++;

What I don't understand, is why it worked, with the offset being screwy, or, if I fix this, will categories suddenly appear? It looks like it was skipping a page, since $offset was being incremented 2x in the first loop.

Code:
$offset=0 ==> set to '1' in the first 'query'
==> incremented to 2
==> set to 3 in the second query
==> incremented to 3
==> set to 4 in the third query...

... second page '$offset=2' never executed.



http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Subject Author Views Date
Thread nph-build problem -- abort or looping pugdog 11629 Aug 29, 2000, 12:32 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11494 Aug 29, 2000, 12:38 PM
Thread Re: nph-build problem -- abort or looping
qango 11389 Aug 29, 2000, 1:32 PM
Post Re: nph-build problem -- abort or looping
Stealth 11379 Aug 29, 2000, 1:40 PM
Thread Re: nph-build problem -- abort or looping
startpoint 11406 Aug 29, 2000, 2:24 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11393 Aug 29, 2000, 3:39 PM
Thread Re: nph-build problem -- abort or looping
qango 11398 Aug 29, 2000, 3:47 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11415 Aug 29, 2000, 3:52 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11395 Aug 30, 2000, 1:25 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11403 Aug 30, 2000, 3:30 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11381 Aug 30, 2000, 6:11 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11370 Aug 30, 2000, 6:36 AM
Thread Re: nph-build problem -- abort or looping
Stealth 11350 Aug 30, 2000, 7:51 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11379 Aug 30, 2000, 4:04 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11356 Aug 30, 2000, 5:05 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11357 Aug 30, 2000, 5:20 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11381 Aug 30, 2000, 6:02 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11362 Aug 30, 2000, 6:14 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11381 Aug 30, 2000, 6:29 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11367 Aug 30, 2000, 6:50 PM
Post Re: nph-build problem -- abort or looping
pugdog 11357 Aug 30, 2000, 7:30 PM
Thread Re: nph-build problem -- abort or looping
Alex404 11378 Aug 31, 2000, 12:42 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11353 Aug 31, 2000, 10:58 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11329 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 11363 Aug 30, 2000, 7:50 AM