28.10.2011, 15:25
at a glance I would say that maybe your variable is being reset somewhere. If his ID comes before yours, this will be the case. I think.
Try resetting them outside the foreach loop.
Try resetting them outside the foreach loop.