Download Limit PHP/Java Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
grahamd711
Forum Newbie
Posts: 1
Joined: Thu Jun 17, 2010 12:50 am

Download Limit PHP/Java Problem

Post by grahamd711 »

I have been working on a music website that deals with downloading mp3 files. The problem that I have run into deals with the database not recognizing download limits. I have set download limits to 5 mp3's per day. When the user clicks on the download button the generic "do you want to download this file" box appears with the "ok" and "cancel" functions. If the user clicks "ok" the database will deduct one download from the 5 for the day. The problem is that when the user clicks cancel, the database is still recognizing it as a download and deducts a download for the day. How can this problem be fixed? Thanks for all the help!
Post Reply