Hello Community,
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.
joshl_1995
22
Twisted Digital
Recommended Answers
Jump to PostIf this was my project I would store their username and a unix time stamp in a
queries
table. I would then execute a cronjob every few minutes to count the number of times the users username appears in thequeries
table. If the cronjob count exceeded 100 I would …
All 7 Replies
mmcdonald
28
Posting Pro
joshl_1995
22
Twisted Digital
mmcdonald
28
Posting Pro
joshl_1995
22
Twisted Digital
mmcdonald
28
Posting Pro
cereal
1,524
Nearly a Senior Poster
Featured Poster
joshl_1995
22
Twisted Digital
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.