Page 1 of 1
Subscription Script - limit downloads
Posted: Tue Mar 04, 2008 9:46 pm
by Timmeh!
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
Posted: Wed Mar 05, 2008 7:37 am
by Rovas
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!