Subscription Script - limit downloads
Moderator: General Moderators
Subscription Script - limit downloads
Hi, i have a music download site that allows subscriptions for users - they pay $x for a month. However, i want to add a script that limits them to a certain amount of downloads per month once they have subscribed. I've been looking for a while now and can't find anything suitable. Does anyone know of a script that maybe suitable?
Re: Subscription Script - limit downloads
You have in your database a table which deals with purchases? If you do add a field with the date of the purchase for each purchased mp3 then simply make a
SQL query that limits the result between the first and the last of the current month: use mktime() for these and watch out for the format in which the dates are kept in your database. Good luck!
SQL query that limits the result between the first and the last of the current month: use mktime() for these and watch out for the format in which the dates are kept in your database. Good luck!