CMX_CMGSCCC,
Just out of curiousity, is there any reason why you don't have an expire table that holds information on all items that have expiration dates? And then running a vbcron once every 24-hours set everything back?
Seems like that would cause fewer corruption headaches with the expiration field in the user table. And this would also allow items to expire without the user having to log in.
I think this method would be a lot more efficient than what you're currently using (although I suppose it would require an extra ADD query when a user makes a purchase).
|