in reply to SQL While loop problem.
On line 104 you read a row and do nothing with it (outside the while loop).
Actually, he does do something with it. Just not with all of it...