My feeling is that you understand why it didn't work. Basically, since you were declaring $count as a parameter to your event function, you were always working with a "local copy" of the variable, and incrementing $count in the event function simply incremented the local copy, not the global. As soon as you exited the function, the local version of $count was discarded. Like DOC says, think its best to keep $count global.

Edited by Shawn (2005-05-14 01:57 AM)