It has been a while since we've done a proper PHP & MySQL tutorial here, at Tutorialzine, so today we are creating a simple, yet robust, file download tracker. Each file will have a corresponding row in the database, where the total number of downloads is saved. PHP will update the MySQL database and redirect the visitors to the appropriate files. To track the number of downloads, you just need to
![PHP & MySQL File Download Counter](https://cdn-ak-scissors.b.st-hatena.com/image/square/9d50e6e3bd3b4c4259505c08dd90969ac117986e/height=288;version=1;width=512/https%3A%2F%2Ftutorialzine.com%2Fmedia%2F2010%2F02%2F717.jpg)