I was wondering if there is a way to limit users on how many database entries they can insert then once they have reached 100 (Max entried) entries it will delete old entries. So if the user has reached 100 entried and they try to insert another entry it will delete and old entry to make room for there entry.
Jump to Post
If this was my project I would store their username and a unix time stamp in a
queriestable. I would then execute a cronjob every few minutes to count the number of times the users username appears in the
queriestable. If the cronjob count exceeded 100 I would …
All 7 Replies
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.