Thanks. I see whats wrong. I used a lazy method to find the last row in the result set instead of using dbi_num_rows ( result ) and pick the last row from there. Ill try and fix this. Actually I think that there is only one place where this problem occurs.
Thx for looking into it
/Lt.
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.