I'm just guessing cause I'm not seeing the code in context, but perhaps you should be using an array.
Instead of $hitstart, it might be $hitstart[$forumid] or something like that. What could be happening is that you are pulling all the hitstarts down for the forms, but the each successive one overwrites the previous.
As I said, I may be all wet on this one, but that would be my first hunch.
|