PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Jul 07, 2020 12:50 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Mar 04, 2008 10:46 pm 
Offline
Forum Newbie

Joined: Tue Mar 04, 2008 10:42 pm
Posts: 2
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?


Top
 Profile  
 
PostPosted: Wed Mar 05, 2008 8:37 am 
Offline
Forum Contributor

Joined: Mon Aug 21, 2006 7:09 am
Posts: 272
Location: Romania
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 46 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group