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 11755 Aug 29, 2000, 12:32 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11620 Aug 29, 2000, 12:38 PM
Thread Re: nph-build problem -- abort or looping
qango 11516 Aug 29, 2000, 1:32 PM
Post Re: nph-build problem -- abort or looping
Stealth 11504 Aug 29, 2000, 1:40 PM
Thread Re: nph-build problem -- abort or looping
startpoint 11531 Aug 29, 2000, 2:24 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11520 Aug 29, 2000, 3:39 PM
Thread Re: nph-build problem -- abort or looping
qango 11523 Aug 29, 2000, 3:47 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11540 Aug 29, 2000, 3:52 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11521 Aug 30, 2000, 1:25 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11529 Aug 30, 2000, 3:30 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11507 Aug 30, 2000, 6:11 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11495 Aug 30, 2000, 6:36 AM
Thread Re: nph-build problem -- abort or looping
Stealth 11475 Aug 30, 2000, 7:51 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11504 Aug 30, 2000, 4:04 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11482 Aug 30, 2000, 5:05 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11482 Aug 30, 2000, 5:20 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11507 Aug 30, 2000, 6:02 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11488 Aug 30, 2000, 6:14 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11507 Aug 30, 2000, 6:29 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11493 Aug 30, 2000, 6:50 PM
Post Re: nph-build problem -- abort or looping
pugdog 11483 Aug 30, 2000, 7:30 PM
Thread Re: nph-build problem -- abort or looping
Alex404 11504 Aug 31, 2000, 12:42 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11479 Aug 31, 2000, 10:58 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11454 Aug 31, 2000, 2:06 PM
Thread to Alex
AndreasH 4496 Aug 31, 2000, 2:51 PM
Thread Re: to Alex
Stealth 4473 Aug 31, 2000, 3:09 PM
Thread Re: to Alex
AndreasH 4481 Aug 31, 2000, 3:18 PM
Post Re: to Alex
Stealth 4453 Aug 31, 2000, 3:25 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4493 Aug 31, 2000, 4:30 PM
Thread Re: nph-build problem -- abort or looping
pugdog 4465 Aug 31, 2000, 5:51 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4464 Aug 31, 2000, 6:27 PM
Thread Re: nph-build problem -- abort or looping
Alex404 4459 Sep 1, 2000, 1:38 AM
Post Re: nph-build problem -- abort or looping
AndreasH 4447 Sep 1, 2000, 3:32 AM
Post To all who helped me!
AndreasH 4436 Sep 1, 2000, 4:44 PM
Post Re: nph-build problem -- abort or looping
Alex404 11489 Aug 30, 2000, 7:50 AM