I'm still having some trouble with this, so I'll post some more info... maybe it'll help...
I'm making a subscription based content system, where a user's credit card is automatically charged every month. When the credit card is charged, it adds a bunch of information to my database, one of which is the timestamp of the transaction...
The users are billed one month from their signup date, so I guess I should have said that I want to see if a user has paid in the last 30 days or so...
What I'm having a hard time doing, is figuring out how to figure in days of the month, since not all months are the same...
I understand both of your solutions, but I can't think how I'd apply it to what I'm trying to do... maybe I'm just being dumb today, I don't know.
I usually don't have this problem when coding, but I'm stuck, and don't know what to do.
Thanks...