Thanks! That worked for me. Did you find the bug in the code? Or did you write a function to delete the records once a day?
There are many ways you can turn your WordPress site into a membership site, the most popular at the moment being the integration of aMember (you may want to check out http://membershipacademy.com).
I’ve set up many membership sites for people, using that combination.
Although if you’re looking to do it all yourself (rather than hire someone etc.), but are not a technical guru, you could try WishList Member (http://member.wishlistproducts.com/) which I’ve heard good things about.
If you’re thinking of drip feeding posts (making it so a member only gets access to certain posts after he’s been a member for so many days) check out http://rolloutpostsplugin.com/
Hope that helps 🙂