Thank you for your fast reply!
Here is a more thorough description of my goal.
It is a game.
user_id|user|field1|group|
___||__||
1|todd|0|alpha|
2|john|1|alpha|
3|paul|0|alpha|
4|stan|0|beta|
__5|mike|1__|beta_|
John submits a form that changes his field1 to 0 and also changes the field1 of the next-highest id user in the same group, alpha, to 1 (in this case Paul). When there is no higher id in the group, it goes to the lowest id (so when Paul submits, Todd's field1 changes to 1).
The script also sends an email to the user whose field1 has been changed to 1.
I would like a user, say Paul, to be able to opt out of the game between dates he would specify through a form. My thought is to have that form change Paul's group name, alpha, to something else, like alpha1, between the specified dates. That would make it so that when John submits the form, Paul's field1 is unchanged and no email would be sent to him, and it would skip up to Todd.
If I am going about this the wrong way, I'm all ears!
Linux server, if that is relevant.
Thanks again for reading.