in reply to Modulus zero error

oops... sorry, I think the whole thing was because I'd used the variable $i somewhere else, which screwed everything up

heh.