Thanks. But can you explain to me why passing the $count to the functions would not allow it to update.

I removed it and all works well (well still have some other issues to fix but that is another thing).

I am assuming (and please correct me if I am wrong) that when passing $count to the function it is orginally sent = to 0, I then add 1 to it, but when it exits the function it returns to 0.

I had thought that by declaring it as a global would fix it, but I had to not pass it to the function before it would hold the value. I am not sure that I am understanding how the function would return it as a 0 even though it was declared as a global.

Thanks
_________________________
Today is the tomorrow you worried about yesterday.